Class Experiment

java.lang.Object
  |
  +--Experiment

public class Experiment
extends java.lang.Object

The User Experiment paramter class.


Field Summary
static int OPTIMIZE_COST
           
static int OPTIMIZE_COST_PLUS
           
static int OPTIMIZE_COST_TIME
           
static int OPTIMIZE_NONE
           
static int OPTIMIZE_TIME
           
 
Constructor Summary
Experiment(int id, gridsim.GridletList glList, int OptimizationStrategy, boolean DB_factor_flag, double D_factor_OR_deadline, double B_factor_OR_budget, java.lang.String report_file, java.lang.String[] resources_name_list)
          Create parameters associated with the user experiment.
 
Method Summary
 double BudgetUtilizationFactor()
           
 boolean Get_DB_factor_flag()
           
 gridsim.Accumulator GetAllGridletsLengthAccumulator()
           
 double GetB_factor()
           
 double GetBudget()
           
 double GetBudgetSpent()
           
 double GetD_factor()
           
 double GetDeadline()
           
 double GetDeadlineTime()
           
 double GetEndTime()
           
 gridsim.GridletList GetGridletList()
           
 int GetID()
           
 int GetNoOfGridlets()
           
 int GetNoOfSuccessfulGridlets()
           
 int GetOptimizationStrategy()
           
 java.lang.String GetOptimizationStrategyName()
           
 java.lang.String GetReportFileName()
           
 java.lang.String[] GetResourcesNameList()
           
 double GetStartTime()
           
 double GridletCompletionFactor()
           
 boolean IsSuccessful()
           
 void SetBudget(double budget)
           
 void SetDeadline(double deadline)
           
 void SetDeadlineBudget(double deadline, double budget)
           
 void SetEndTime()
           
 void SetStartTime()
          Set Current Time as Experiment Start Time.
 double TimeUtilizationFactor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTIMIZE_COST

public static final int OPTIMIZE_COST
See Also:
Constant Field Values

OPTIMIZE_COST_PLUS

public static final int OPTIMIZE_COST_PLUS
See Also:
Constant Field Values

OPTIMIZE_COST_TIME

public static final int OPTIMIZE_COST_TIME
See Also:
Constant Field Values

OPTIMIZE_TIME

public static final int OPTIMIZE_TIME
See Also:
Constant Field Values

OPTIMIZE_NONE

public static final int OPTIMIZE_NONE
See Also:
Constant Field Values
Constructor Detail

Experiment

public Experiment(int id,
                  gridsim.GridletList glList,
                  int OptimizationStrategy,
                  boolean DB_factor_flag,
                  double D_factor_OR_deadline,
                  double B_factor_OR_budget,
                  java.lang.String report_file,
                  java.lang.String[] resources_name_list)
Create parameters associated with the user experiment.

Parameters:
id - - experiment ID
glList - - A list containing Gridlets that has details on the list of the jobs.
OptimizationStrategy - - optimise for time, cost,..
DB_factor_flag - - true if the next two parameters are D_factor and B_factor and the User expects the Broker to determine actual deadline and budget based on these to relaxation parameters
D_factor_OR_deadline - - if DB_factor_flag is true, then it is D_factor; otherwise, it is deadline value.
B_factor_OR_budget - - if DB_factor_flag is true, then it is B_factor; otherwise, it is budget value.
report_file - - the name of the file into which Scheduling report is to placed.
Method Detail

GetID

public int GetID()

GetGridletList

public gridsim.GridletList GetGridletList()

GetResourcesNameList

public java.lang.String[] GetResourcesNameList()

GetOptimizationStrategy

public int GetOptimizationStrategy()

GetOptimizationStrategyName

public java.lang.String GetOptimizationStrategyName()

Get_DB_factor_flag

public boolean Get_DB_factor_flag()

GetB_factor

public double GetB_factor()

GetD_factor

public double GetD_factor()

SetDeadline

public void SetDeadline(double deadline)

GetDeadline

public double GetDeadline()

GetDeadlineTime

public double GetDeadlineTime()

SetBudget

public void SetBudget(double budget)

GetBudget

public double GetBudget()

SetDeadlineBudget

public void SetDeadlineBudget(double deadline,
                              double budget)

GetReportFileName

public java.lang.String GetReportFileName()

SetStartTime

public void SetStartTime()
Set Current Time as Experiment Start Time.


GetStartTime

public double GetStartTime()

SetEndTime

public void SetEndTime()

GetEndTime

public double GetEndTime()

GetNoOfGridlets

public int GetNoOfGridlets()

GetBudgetSpent

public double GetBudgetSpent()

GetNoOfSuccessfulGridlets

public int GetNoOfSuccessfulGridlets()

IsSuccessful

public boolean IsSuccessful()

GridletCompletionFactor

public double GridletCompletionFactor()

TimeUtilizationFactor

public double TimeUtilizationFactor()

BudgetUtilizationFactor

public double BudgetUtilizationFactor()

GetAllGridletsLengthAccumulator

public gridsim.Accumulator GetAllGridletsLengthAccumulator()