org.dbe.eve.simulator
Class DataStorage

java.lang.Object
  extended by org.dbe.eve.simulator.DataStorage

public class DataStorage
extends java.lang.Object


Field Summary
private static DataStorage instance
           
(package private) static org.apache.log4j.Logger logger
           
(package private)  EvEModel model
           
(package private)  java.util.Vector networkFitness
           
(package private)  java.util.Vector networkRunSMEData
           
 
Constructor Summary
private DataStorage()
          Empty constructor (Signelton)
 
Method Summary
static DataStorage getInstance()
          Singelton to ensure that only one Instance exsist
 java.util.Vector getNetworkFitness()
          returns a Vector which stores the fitness values of all runs
 java.util.Vector getNetworkRunSMEData()
          returns a Vector with the Fitness of each SME in each run.
 void saveDataStoreageToFile(java.lang.String fileName)
          saves the outcome of the simulation into an .csv File
private  void setModel(EvEModel model)
           
 void storeRunData(EvEModel model)
          stores the information of each run which is needed to analyses the behaviour of the network for more than one run
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

model

EvEModel model

networkFitness

java.util.Vector networkFitness

networkRunSMEData

java.util.Vector networkRunSMEData

instance

private static DataStorage instance

logger

static org.apache.log4j.Logger logger
Constructor Detail

DataStorage

private DataStorage()
Empty constructor (Signelton)

Method Detail

getInstance

public static DataStorage getInstance()
Singelton to ensure that only one Instance exsist

Returns:
DataStorage the instance

setModel

private void setModel(EvEModel model)

storeRunData

public void storeRunData(EvEModel model)
stores the information of each run which is needed to analyses the behaviour of the network for more than one run

Parameters:
runData -
networkFitness -

getNetworkFitness

public java.util.Vector getNetworkFitness()
returns a Vector which stores the fitness values of all runs

Returns:
Vector with the fitness values of all runs

getNetworkRunSMEData

public java.util.Vector getNetworkRunSMEData()
returns a Vector with the Fitness of each SME in each run. The fitness value was stored at the end of each run.

Returns:
Vector with the Fitness of each SME in each run

saveDataStoreageToFile

public void saveDataStoreageToFile(java.lang.String fileName)
saves the outcome of the simulation into an .csv File


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object