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

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

public class Checkpoint
extends java.lang.Object

The Checkpoint class stores all the different calculated parameters for a certain checkpointing scheme (optimal or hourly).

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

Constructor Summary
Checkpoint()
          Constructor for Checkpoint which initializes all the values
 
Method Summary
 double[][] getAvail_ratio()
          Getter for the availability ratios for a certain category/instance type
 java.lang.String getDescription()
           
 double[][] getDist_avail_ratio()
          Getter for the distribution availability ratios for a certain category/instance type
 double[][] getDist_exec_time()
          Getter for the distribution execution time for a certain category/instance type
 double[][] getDist_gros_time()
          Getter for the distribution gross workload for a certain category/instance type
 double[][] getDist_total_cost()
          Getter for the distribution total cost for a certain category/instance type
 double[][] getDist_usage_ratio()
          Getter for the distribution usage ratio for a certain category/instance type
 double[][] getExec_time()
          Getter for the execution times for a certain category/instance type
 java.lang.String getFileName()
           
 double[][] getGros_time()
          Getter for the gross workload for a certain category/instance type
 double[] getMean_avail_ratio()
          Getter for the mean availability ratios for a certain category/instance type
 double[] getMean_usage_ratio()
          Getter for the mean usage ratio for a certain category/instance type
 int[] getNumber_task()
          Getter for the number of tasks being executed for a certain category/instance type
 double[] getPrice_per_hour()
          Getter for the expected price per hour for a certain category/instance type
 double[] getPrice()
          Getter for the remaining execution time for a certain category/instance type
 double[] getTime_avail()
          Getter for the availability times for a certain category/instance type
 double[] getTime()
          Getter for the total required execution time for a certain category/instance type
 double[][] getTotal_cost()
          Getter for the total cost for a certain category/instance type
 double[][] getUsage_ratio()
          Getter for the usage ratio for a certain category/instance type
 void setDescription(java.lang.String desc)
          Setter for the description of the corresponding checkpointing scheme
 void setFileName(java.lang.String fn)
          Setter for the name of the output file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Checkpoint

public Checkpoint()
Constructor for Checkpoint which initializes all the values

Method Detail

setFileName

public void setFileName(java.lang.String fn)
Setter for the name of the output file

Parameters:
fn - the name of the output file

setDescription

public void setDescription(java.lang.String desc)
Setter for the description of the corresponding checkpointing scheme

Parameters:
desc - description of the checkpointing scheme

getTime

public double[] getTime()
Getter for the total required execution time for a certain category/instance type

Returns:
the requested total required execution times

getPrice

public double[] getPrice()
Getter for the remaining execution time for a certain category/instance type

Returns:
the requested remaining execution times

getNumber_task

public int[] getNumber_task()
Getter for the number of tasks being executed for a certain category/instance type

Returns:
the number of tasks being executed

getDist_usage_ratio

public double[][] getDist_usage_ratio()
Getter for the distribution usage ratio for a certain category/instance type

Returns:
the requested distribution usage ratios

getMean_usage_ratio

public double[] getMean_usage_ratio()
Getter for the mean usage ratio for a certain category/instance type

Returns:
the requested mean usage ratios

getUsage_ratio

public double[][] getUsage_ratio()
Getter for the usage ratio for a certain category/instance type

Returns:
the requested usage ratios

getDist_avail_ratio

public double[][] getDist_avail_ratio()
Getter for the distribution availability ratios for a certain category/instance type

Returns:
the requested distribution availability ratios

getMean_avail_ratio

public double[] getMean_avail_ratio()
Getter for the mean availability ratios for a certain category/instance type

Returns:
the requested mean availability ratios

getTime_avail

public double[] getTime_avail()
Getter for the availability times for a certain category/instance type

Returns:
the requested availability times

getAvail_ratio

public double[][] getAvail_ratio()
Getter for the availability ratios for a certain category/instance type

Returns:
the requested availability ratios

getDist_exec_time

public double[][] getDist_exec_time()
Getter for the distribution execution time for a certain category/instance type

Returns:
the requested distribution execution times

getExec_time

public double[][] getExec_time()
Getter for the execution times for a certain category/instance type

Returns:
the requested execution times

getDist_gros_time

public double[][] getDist_gros_time()
Getter for the distribution gross workload for a certain category/instance type

Returns:
the requested distribution gross workloads

getGros_time

public double[][] getGros_time()
Getter for the gross workload for a certain category/instance type

Returns:
the requested gross workloads

getPrice_per_hour

public double[] getPrice_per_hour()
Getter for the expected price per hour for a certain category/instance type

Returns:
the requested expected price per hours

getDist_total_cost

public double[][] getDist_total_cost()
Getter for the distribution total cost for a certain category/instance type

Returns:
the requested distribution total costs

getTotal_cost

public double[][] getTotal_cost()
Getter for the total cost for a certain category/instance type

Returns:
the requested total costs

getFileName

public java.lang.String getFileName()
Returns:
the filename of the corresponding output file

getDescription

public java.lang.String getDescription()
Returns:
the description of the checkpointing scheme that is being used