|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReportVariables
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.
Method Summary | |
---|---|
void |
compute(SimEvent event)
Update variables. |
void |
dispose(SimEvent event)
Clean up any side effects (eg close file). |
java.lang.String |
getName()
|
void |
initialise(SimEvent event)
Initialise the variables in response to event. |
Methods inherited from interface net.sourceforge.jabm.report.Report |
---|
getVariableBindings |
Methods inherited from interface net.sourceforge.jabm.event.EventListener |
---|
eventOccurred |
Method Detail |
---|
void compute(SimEvent event)
event
- void dispose(SimEvent event)
event
- void initialise(SimEvent event)
event
- java.lang.String getName()
getName
in interface Report
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |