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

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

public class SpotModel
extends java.lang.Object

The DecisionModel simulator was made for calculating PDF (Probability Density Function) and CDF (Cumulative Density Function) of on- and out-of-bid conditions on Amazon EC2 Spot instances.

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

Constructor Summary
SpotModel()
           
 
Method Summary
 SpotPrice executeSimulation(InstanceSpecification spec, int taskLength, int hoursAvailable)
          Execute the spot model simulation for the given instance and return the appropriate bid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotModel

public SpotModel()
Method Detail

executeSimulation

public SpotPrice executeSimulation(InstanceSpecification spec,
                                   int taskLength,
                                   int hoursAvailable)
                            throws java.lang.Exception
Execute the spot model simulation for the given instance and return the appropriate bid.

Parameters:
spec - the instance to do the simulation for
taskLength - the length of the job to simulate
hoursAvailable - the number of hours the instance to run the task on is available
Returns:
the appropriate bid to use in our broker application
Throws:
java.lang.Exception