|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Monitor implementations monitor the simulation. In each simulation step, at its and every monitor is called, for it values.
Actualy the storage mechanism calles the monitors to get the values from them and stores them.
Monitor can monitor anything the programer has acces to. The rules are, that an value should be returned that monitor defines. The monitor can also change the identifiers, but should always has as many values as identifier. If it cannot make a value, it should return 0. Monitor can also return a non number values, but these cannot be displayd for now in graphs.
Monitor should hold only one tick values. For the collecting
of the values is responsible the DataStorage
Method Summary | |
String |
getDescription()
A monitor description, describing to user, what is this monitor doing. |
String |
getFullName()
The monitor full name. |
String[] |
getIdentifiers()
The value identifier. |
String |
getMonitorName()
The monitor name, should be readable for the user. |
boolean |
getPersistence()
The persistence of this monitor. |
Project |
getProject()
Returns the project the monitor is in. |
Object[] |
getValues()
Returns an array of values, that the monitor has monitored. |
void |
restart()
Restart the monitor. |
void |
setPersistence(boolean per)
Sets the persistence of this monitor |
void |
setProject(Project w)
Sets the project the monitor is in. |
Method Detail |
public Object[] getValues()
public String[] getIdentifiers()
public String getMonitorName()
public String getFullName()
public String getDescription()
public void setProject(Project w)
w
- the projectpublic Project getProject()
public boolean getPersistence()
public void setPersistence(boolean per)
per
- the value to setgetPersistence()
public void restart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |