public interface Collector extends Serializable
Output
.Modifier and Type | Field and Description |
---|---|
static Collector |
EMPTY
An empty
Collector that does nothing. |
Modifier and Type | Method and Description |
---|---|
void |
collect(SimState state)
Collects data.
|
default OutputWriter |
createWriter(Path outputPath)
Returns fitting
OutputWriter for this collector. |
default String |
getName()
Returns the name of this collector.
|
void collect(SimState state)
CollectMessage
.state
- the simulation statedefault OutputWriter createWriter(Path outputPath)
OutputWriter
for this collector. Default
implementation is to return OutputWriter.EMPTY
.outputPath
- the output pathOutputWriter
for this collectordefault String getName()