public interface ReportVariables extends Report
This interface defines Report objects which keep track of variables which are recomputed in response to various simulation events.
This interface allows the same metrics to be collected in different ways, for example at different frequencies: we might collect data on the mean population fitness at the end of each generation, at the end of each simulation, or at some specified temporal frequency.
In this example, the computation of population fitness can be coded once in a single implementation of ReportVariables, and then different Reports can be created which update these variables at the required frequency or in response to the required events.
Modifier and Type | Method and Description |
---|---|
void |
compute(SimEvent event)
Update variables.
|
void |
dispose(SimEvent event)
Clean up any side effects (eg close file).
|
String |
getName() |
void |
initialise(SimEvent event)
Initialise the variables in response to event.
|
getVariableBindings
eventOccurred
Copyright © 2014. All rights reserved.