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

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

public class OutputReader
extends java.lang.Object

The OutputReader class is used to read data from the output files generated by the spot model.

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

Constructor Summary
OutputReader()
           
 
Method Summary
 double getBid(java.lang.String inputFile, java.lang.String inst, int t, int et, java.lang.String checkpointingScheme, double confindenceLevel)
          Get the bid to use in the broker application for the given instance type,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputReader

public OutputReader()
Method Detail

getBid

public double getBid(java.lang.String inputFile,
                     java.lang.String inst,
                     int t,
                     int et,
                     java.lang.String checkpointingScheme,
                     double confindenceLevel)
              throws java.lang.Exception
Get the bid to use in the broker application for the given instance type,

Parameters:
inputFile - the spot model output file to get the bid information from
inst - the instance type to get bid information for
t - the length of the task
et - the desired estimated time
Returns:
the appropriate bid information
Throws:
java.lang.Exception - if the file is not found.