Package jsl.observers.textfile
Class CSVReplicationReport
- java.lang.Object
-
- jsl.observers.ModelElementObserver
-
- jsl.observers.textfile.CSVReport
-
- jsl.observers.textfile.CSVReplicationReport
-
- All Implemented Interfaces:
ObserverIfc
,GetNameIfc
,IdentityIfc
public class CSVReplicationReport extends CSVReport
Represents a comma separated value file for replication data SimName, ModelName, ExpName, RepNum, ResponseType, ResponseID, ResponseName, .. then the header from WeightedStatistic.getCSVStatisticHeader() Captures all ResponseVariables, TimeWeighted variables, and Counters
-
-
Field Summary
Fields Modifier and Type Field Description protected int
myRepCount
-
Fields inherited from class jsl.observers.textfile.CSVReport
myHeaderFlag, myLine, myLineWidth, myWriter, quoteChar
-
Fields inherited from class jsl.observers.ModelElementObserver
myName
-
-
Constructor Summary
Constructors Constructor Description CSVReplicationReport(java.nio.file.Path pathToFile)
Makes a report as a file within the supplied path
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterReplication(ModelElement m, java.lang.Object arg)
protected void
beforeExperiment(ModelElement m, java.lang.Object arg)
int
getReplicationCount()
protected void
writeHeader()
-
Methods inherited from class jsl.observers.ModelElementObserver
afterExperiment, beforeReplication, getId, getModelElement, getName, initialize, montecarlo, removedFromModel, replicationEnded, setModelElement, setName, timedUpdate, toString, update, update, warmUp
-
-
-
-
Method Detail
-
getReplicationCount
public final int getReplicationCount()
- Returns:
- The number of times afterReplication was called
-
beforeExperiment
protected void beforeExperiment(ModelElement m, java.lang.Object arg)
- Overrides:
beforeExperiment
in classCSVReport
-
writeHeader
protected void writeHeader()
- Specified by:
writeHeader
in classCSVReport
-
afterReplication
protected void afterReplication(ModelElement m, java.lang.Object arg)
- Overrides:
afterReplication
in classModelElementObserver
-
-