|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DataStorage should be a flexible storage for data. DataStorage is initialized without monitors or with some if needed. The monitors could be added or removed from the DataStorage. Or whole vector of monitors can be replaced! The DataStorage should adapt to the changes, and not to reset already created values. DataStorage is also responsible for getting values from the monitors for whole simulation range or any other range.. example: DataStorage.get("tick", "1..20") - returs 1..20 :)) DataStorage.getAll("coherence"); //and so on... The main atribute for storing data is the data tick. Data tick is diferent from the life tick. Life tick can be repeated (can?) bud data tick will be different. The graphs, whould like to get for X axis the LifeTick and for Y axis any other value...
Method Summary | |
void |
close()
Makes flush and save the data. |
com.jrefinery.data.CategoryDataset |
getLastTickCategoryDataset(List property)
An category dataset. |
com.jrefinery.data.PieDataset |
getLastTickPieDataset(List property)
Pie dataset for the pie graph. |
List |
getPropertyNames()
Get actual list of properties that are monitored and stored to the disk. |
DataStorage |
getRun(int index)
Returns a DataStorage for older simulation data. |
List |
getRunNames()
Every storage is responsible for the runs, that user makes. |
Object |
getValue(int tick,
String property)
retruns a value for tick and property. |
com.jrefinery.data.XYDataset |
getXYTickValueDataset(List property)
Like above |
com.jrefinery.data.XYDataset |
getXYTickValueDataset(List property,
int window)
like above |
com.jrefinery.data.XYDataset |
getXYTickValueDataset(String[] property)
Retrusn a dataset for graph with multiple properties |
com.jrefinery.data.XYDataset |
getXYTickValueDataset(String property,
int window)
Retrusn a dataset for graph |
Integer |
lastTick()
The lastTick that was recorder by this storage |
void |
record(Vector monitors)
This method should get avaible data from the monitors and store them. |
Method Detail |
public void record(Vector monitors) throws IOException
monitors
- The vector of monitors.
IOException
- if some io problem occures.public void close()
public List getRunNames()
getRun
method.
getRun(int)
public DataStorage getRun(int index)
index
- index of older simulation
public List getPropertyNames()
public com.jrefinery.data.XYDataset getXYTickValueDataset(String property, int window)
property
- property namewindow
- the tick step size
public com.jrefinery.data.XYDataset getXYTickValueDataset(String[] property)
property
- the list of properties
public com.jrefinery.data.XYDataset getXYTickValueDataset(List property)
property
- the properties
public com.jrefinery.data.XYDataset getXYTickValueDataset(List property, int window)
property
- propetieswindow
- the tick step size
public com.jrefinery.data.CategoryDataset getLastTickCategoryDataset(List property)
property
- propeties
public com.jrefinery.data.PieDataset getLastTickPieDataset(List property)
property
- the property list
public Integer lastTick()
public Object getValue(int tick, String property)
tick
- the tickproperty
- property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |