de.unima.alcomox.util
Class DataStorage
java.lang.Object
de.unima.alcomox.util.DataStorage
public class DataStorage
- extends java.lang.Object
Constructor Summary |
DataStorage()
Constructs a data storage. |
DataStorage(java.lang.String pattern)
Constructs a data storage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mirror
public static DataStorage mirror
DataStorage
public DataStorage()
- Constructs a data storage. Used for collecting results and runtimes of experiments.
Uses 0.000 to display double / float values.
DataStorage
public DataStorage(java.lang.String pattern)
- Constructs a data storage. Used for collecting results and runtimes of experiments.
- Parameters:
pattern
- The pattern for double / float values to be stored as strings (in case rounding is required).
makeVisible
public void makeVisible()
deactivateStopWatch
public void deactivateStopWatch()
deactivateCounter
public void deactivateCounter()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
createDataRow
public void createDataRow()
addValue
public void addValue(java.lang.String value)
addValue
public void addValue(int value)
addValue
public void addValue(double value)
startClock
public void startClock()
takeTime
public void takeTime()
addCounter
public void addCounter()
- Adds the value of the counter as data value and restets the counter to 0.
count
public void count()
resetCounter
public int resetCounter()
- Returns the value of the counter and resets it to 0.
- Returns:
- Old value of the counter.