public class FittestStrategyReportVariables extends Object implements ReportVariables
Modifier and Type | Field and Description |
---|---|
protected int |
fileCounter |
protected MutableStringWrapper |
fileNamePrefix |
protected String |
fileNameSuffix |
protected Agent |
fittestAgent |
protected ObjectOutputStream |
out |
Constructor and Description |
---|
FittestStrategyReportVariables(MutableStringWrapper fileNamePrefix,
String fileNameSuffix) |
Modifier and Type | Method and Description |
---|---|
void |
compute(SimEvent event)
Update variables.
|
void |
createOutputFile() |
void |
dispose(SimEvent event)
Clean up any side effects (eg close file).
|
void |
eventOccurred(SimEvent event) |
MutableStringWrapper |
getFileNamePrefix() |
String |
getFileNameSuffix() |
String |
getName() |
Map<Object,Number> |
getVariableBindings()
Get the values calculated by this report.
|
void |
initialise(SimEvent event)
Initialise the variables in response to event.
|
void |
setFileNamePrefix(MutableStringWrapper fileNamePrefix) |
void |
setFileNameSuffix(String fileNameSuffix) |
protected MutableStringWrapper fileNamePrefix
protected String fileNameSuffix
protected ObjectOutputStream out
protected Agent fittestAgent
protected int fileCounter
public FittestStrategyReportVariables(MutableStringWrapper fileNamePrefix, String fileNameSuffix)
public void compute(SimEvent event)
ReportVariables
compute
in interface ReportVariables
public Map<Object,Number> getVariableBindings()
Report
getVariableBindings
in interface Report
Map
of user-readable variable names to their
associated values.public void initialise(SimEvent event)
ReportVariables
initialise
in interface ReportVariables
public void createOutputFile()
public MutableStringWrapper getFileNamePrefix()
public void setFileNamePrefix(MutableStringWrapper fileNamePrefix)
public String getFileNameSuffix()
public void setFileNameSuffix(String fileNameSuffix)
public void eventOccurred(SimEvent event)
eventOccurred
in interface EventListener
public void dispose(SimEvent event)
ReportVariables
dispose
in interface ReportVariables
public String getName()
getName
in interface Report
getName
in interface ReportVariables
Copyright © 2014. All rights reserved.