be.ac.ua.broker.allocation.spot.model
Class ResultWriter

java.lang.Object
  extended by be.ac.ua.broker.allocation.spot.model.ResultWriter

public class ResultWriter
extends java.lang.Object

The ResultWriter class is used to write all the results of the simulations to CSV files.

Author:
Vermeersch Kurt (Based on Sangho Yi c++ implementation of the spot model)s

Constructor Summary
ResultWriter(State st, java.lang.String instance)
          Constructor for ResultWriter
 
Method Summary
 void storeEachResult(int ckpt_method, int time_appexec)
          Store one result of a simulation to file
 void storeResults(int time_appexec)
          Store the results of the simulation to file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultWriter

public ResultWriter(State st,
                    java.lang.String instance)
Constructor for ResultWriter

Parameters:
st - the state of the simulation
instance - the instance type whose results will be written to file
Method Detail

storeEachResult

public void storeEachResult(int ckpt_method,
                            int time_appexec)
Store one result of a simulation to file

Parameters:
ckpt_method - the checkpointing scheme that was used
time_appexec - the length of the task that was being used in the simulation

storeResults

public void storeResults(int time_appexec)
Store the results of the simulation to file

Parameters:
time_appexec - the length of the simulation