public class CSVReportVariables extends Object implements ReportVariables
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoNumbering |
protected Object |
fileNameExtension |
protected Object |
fileNamePrefix |
protected String |
fileNameSuffix |
protected int |
fileNumber |
protected boolean |
passThrough |
protected ReportVariables |
reportVariables
This report collects the data that we will write.
|
protected CSVWriter |
writer |
Constructor and Description |
---|
CSVReportVariables() |
CSVReportVariables(String fileNameSuffix,
Object fileNamePrefix,
ReportVariables reportVariables) |
CSVReportVariables(String fileNameSuffix,
ReportVariables reportVariables) |
Modifier and Type | Method and Description |
---|---|
void |
compute(SimEvent event)
Update variables.
|
void |
createWriter() |
void |
dispose(SimEvent event)
Clean up any side effects (eg close file).
|
void |
eventOccurred(SimEvent event) |
String |
getFileName() |
Object |
getFileNameExtension() |
Object |
getFileNamePrefix() |
String |
getFileNameSuffix() |
String |
getName() |
String |
getNumberingSuffix() |
ReportVariables |
getReportVariables() |
Map<Object,Number> |
getVariableBindings()
Get the values calculated by this report.
|
void |
initialise(SimEvent event)
Initialise the variables in response to event.
|
boolean |
isAutoNumbering() |
boolean |
isPassThrough() |
void |
setAutoNumbering(boolean autoNumbering) |
void |
setFileNameExtension(Object fileNameExtension) |
void |
setFileNamePrefix(Object fileNamePrefix) |
void |
setFileNameSuffix(String fileNameSuffix) |
void |
setPassThrough(boolean passThrough) |
void |
setReportVariables(ReportVariables reportVariables) |
protected String fileNameSuffix
protected Object fileNamePrefix
protected Object fileNameExtension
protected CSVWriter writer
protected ReportVariables reportVariables
protected int fileNumber
protected boolean autoNumbering
protected boolean passThrough
public CSVReportVariables(String fileNameSuffix, Object fileNamePrefix, ReportVariables reportVariables)
public CSVReportVariables(String fileNameSuffix, ReportVariables reportVariables)
public CSVReportVariables()
public void compute(SimEvent event)
ReportVariables
compute
in interface ReportVariables
public void createWriter()
public String getFileName()
public String getNumberingSuffix()
public Map<Object,Number> getVariableBindings()
Report
getVariableBindings
in interface Report
Map
of user-readable variable names to their
associated values.public String getFileNameSuffix()
public void setFileNameSuffix(String fileNameSuffix)
public Object getFileNamePrefix()
public void setFileNamePrefix(Object fileNamePrefix)
public void eventOccurred(SimEvent event)
eventOccurred
in interface EventListener
public void dispose(SimEvent event)
ReportVariables
dispose
in interface ReportVariables
public void initialise(SimEvent event)
ReportVariables
initialise
in interface ReportVariables
public ReportVariables getReportVariables()
public void setReportVariables(ReportVariables reportVariables)
public boolean isAutoNumbering()
public void setAutoNumbering(boolean autoNumbering)
public Object getFileNameExtension()
public void setFileNameExtension(Object fileNameExtension)
public boolean isPassThrough()
public void setPassThrough(boolean passThrough)
public String getName()
getName
in interface Report
getName
in interface ReportVariables
Copyright © 2014. All rights reserved.