de.unima.alcomox.util
Class DataStorage

java.lang.Object
  extended by de.unima.alcomox.util.DataStorage

public class DataStorage
extends java.lang.Object


Field Summary
static DataStorage mirror
           
 
Constructor Summary
DataStorage()
          Constructs a data storage.
DataStorage(java.lang.String pattern)
          Constructs a data storage.
 
Method Summary
 void addCounter()
          Adds the value of the counter as data value and restets the counter to 0.
 void addValue(double value)
           
 void addValue(int value)
           
 void addValue(java.lang.String value)
           
 void count()
           
 void createDataRow()
           
 void deactivateCounter()
           
 void deactivateStopWatch()
           
 void makeVisible()
           
 int resetCounter()
          Returns the value of the counter and resets it to 0.
 void startClock()
           
 void takeTime()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mirror

public static DataStorage mirror
Constructor Detail

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).
Method Detail

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.