|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--elge.storage.file.DataRecorder
DataRecorder is a simple easy format data recorder. It uses very simple format for writing. Especialy for each element there is a seperate file. In each file there is a tick in every new line, there is a tick count and a value that is stored separated by ":" The format is compresed, so only changes are writen, and last tick - is writen.
Field Summary | |
protected static SimpleDateFormat |
dirName
|
protected static SimpleDateFormat |
format
|
Method Summary | |
void |
close()
Makes flush and save the data. |
static DataRecorder |
createRecorder(String path)
In path creates new directory where data are stored... |
void |
destroy()
|
DataReader |
getDataReader(String property)
|
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)
Toto spravi viac series v tom grafe... |
com.jrefinery.data.XYDataset |
getXYTickValueDataset(String property,
int window)
Creates dataset that uses data stored for the "property", actualy, the X is tick count, and Y is the data... |
Integer |
lastTick()
The lastTick that was recorder by this storage |
void |
record(Vector monitors)
Stores the data from monitors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static SimpleDateFormat dirName
protected static SimpleDateFormat format
Method Detail |
public static DataRecorder createRecorder(String path)
public com.jrefinery.data.XYDataset getXYTickValueDataset(String property, int window)
getXYTickValueDataset
in interface DataStorage
property
- property namewindow
- the tick step size
public com.jrefinery.data.XYDataset getXYTickValueDataset(String[] property)
getXYTickValueDataset
in interface DataStorage
property
- the list of properties
public com.jrefinery.data.XYDataset getXYTickValueDataset(List property)
DataStorage
getXYTickValueDataset
in interface DataStorage
property
- the properties
public com.jrefinery.data.XYDataset getXYTickValueDataset(List property, int window)
DataStorage
getXYTickValueDataset
in interface DataStorage
property
- propetieswindow
- the tick step size
public void record(Vector monitors) throws IOException
record
in interface DataStorage
monitors
- The vector of monitors.
IOException
- if some io problem occures.public void close()
close
in interface DataStorage
public void destroy()
public Integer lastTick()
DataStorage
lastTick
in interface DataStorage
public DataReader getDataReader(String property)
public com.jrefinery.data.CategoryDataset getLastTickCategoryDataset(List property)
DataStorage
getLastTickCategoryDataset
in interface DataStorage
property
- propeties
public com.jrefinery.data.PieDataset getLastTickPieDataset(List property)
DataStorage
getLastTickPieDataset
in interface DataStorage
property
- the property list
public DataStorage getRun(int index)
DataStorage
getRun
in interface DataStorage
index
- index of older simulation
public List getRunNames()
getRun
method.
getRunNames
in interface DataStorage
getRun(int)
public List getPropertyNames()
DataStorage
getPropertyNames
in interface DataStorage
public Object getValue(int tick, String property)
DataStorage
getValue
in interface DataStorage
tick
- the tickproperty
- property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |