SpiTracker class

A tracker for SpiInterface.

Inheritance

Constructors

SpiTracker({required SpiInterface intf, String name = 'spiTracker', bool dumpJson = true, bool dumpTable = true, String? outputFolder, int timeColumnWidth = 8, int dataColumnWidth = 8, int typeColumnWidth = 8})
Creates a new tracker for SpiInterface.

Properties

dumpJson → bool
If true, will dump a JSON file log to jsonFileName.
finalinherited
dumpTable → bool
If true, will dump an ASCII table log to tableFileName.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
intf → SpiInterface
The interface to watch.
final
jsonFileName → String
The path to the generated JSON log file, if enabled by dumpJson.
no setterinherited
name → String
The name of this Tracker, used for naming output files.
finalinherited
outputFolder → String?
An optional output directory for the logs.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tableFileName → String
The path to the generated ASCII table log file, if enabled by dumpTable.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(SpiPacket trackable, {Map<String, String?> defaults = const {}}) → void
Records trackable into all enabled logs.
inherited
terminate() → Future<void>
Cleans up and finalizes all logs.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

dataField → const String
Tracker field for data.
timeField → const String
Tracker field for simulation time.
typeField → const String
Tracker field for type from: Main or Sub.