|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--gridbroker.Experiment
Experiment class acts as a placeholder for representing simulation experiment configuration that includes synthesized application (a set of Gridlets stored in GridletList) and user requirements such as D- and B-factor or deadline and budget constraints, and optimization strategy.
It provides methods for updating and querying the experiment parameters and status. The user entity invokes the broker entity and passes its requirements via the experiment object. On receiving an experiment from its user, the broker schedules Gridlets according to the optimization policy set for the experiment.
Field Summary | |
static int |
OPTIMIZE_COST
Aims for Cost minimization |
static int |
OPTIMIZE_COST_PLUS
Aims for Cost minimization. |
static int |
OPTIMIZE_COST_TIME
Aims for Cost minimization and Time Optimisation if possible |
static int |
OPTIMIZE_NONE
Aims for NO minimization |
static int |
OPTIMIZE_TIME
Aims for Time minimization |
Constructor Summary | |
Experiment(int id,
GridletList glList,
int optStrategy,
boolean factorFlag,
double D_value,
double B_value,
String reportFile,
String[] resNameList)
Allocates a new Experiment object |
Method Summary | |
double |
BudgetUtilizationFactor()
Deprecated. As of GridBroker 2.1, replaced by getBudgetUtilFactor() |
boolean |
Get_DB_factor_flag()
Deprecated. As of GridBroker 2.1, replaced by getFactorFlag() |
Accumulator |
getAllGridletLengthAccumulator()
Accumulates the length of all the Gridlets |
Accumulator |
GetAllGridletsLengthAccumulator()
Deprecated. As of GridBroker 2.1, replaced by getAllGridletLengthAccumulator() |
double |
GetB_factor()
Deprecated. As of GridBroker 2.1, replaced by getBudgetFactor() |
double |
getBudget()
Gets the experiment budget |
double |
GetBudget()
Deprecated. As of GridBroker 2.1, replaced by getBudget() |
double |
getBudgetFactor()
Gets the budget factor |
double |
getBudgetSpent()
Gets the total budget spent on a successful Gridlets' execution. |
double |
GetBudgetSpent()
Deprecated. As of GridBroker 2.1, replaced by getBudgetSpent() |
double |
getBudgetUtilFactor()
Gets the budget utilization factor |
double |
GetD_factor()
Deprecated. As of GridBroker 2.1, replaced by getDeadlineFactor() |
double |
getDeadline()
Gets the experiment deadline |
double |
GetDeadline()
Deprecated. As of GridBroker 2.1, replaced by getDeadline() |
double |
getDeadlineFactor()
Gets the deadline factor |
double |
getDeadlineTime()
Gets the deadline time |
double |
GetDeadlineTime()
Deprecated. As of GridBroker 2.1, replaced by getDeadlineTime() |
double |
getEndTime()
Gets the experiment end time |
double |
GetEndTime()
Deprecated. As of GridBroker 2.1, replaced by getEndTime() |
int |
getExperimentID()
Gets the experiment ID |
boolean |
getFactorFlag()
Gets the deadline and budget factor flag |
double |
getGridletCompletionFactor()
Gets the completion ratio based on the number of successful Gridlets with the total Gridlets. |
GridletList |
getGridletList()
Gets a list of Gridlets |
GridletList |
GetGridletList()
Deprecated. As of GridBroker 2.1, replaced by getGridletList() |
int |
GetID()
Deprecated. As of GridBroker 2.1, replaced by getExperimentID() |
int |
GetNoOfGridlets()
Deprecated. As of GridBroker 2.1, replaced by getNumGridlet() |
int |
GetNoOfSuccessfulGridlets()
Deprecated. As of GridBroker 2.1, replaced by getNumSuccessfulGridlet() |
int |
getNumGridlet()
Gets the number of Gridlets |
int |
getNumSuccessfulGridlet()
Gets the total number of successful Gridlets |
int |
getOptimizationStrategy()
Gets the optimization strategy represented in an integer number |
int |
GetOptimizationStrategy()
Deprecated. As of GridBroker 2.1, replaced by getOptimizationStrategy() |
String |
getOptimizationStrategyName()
Gets the optimization strategy represented in a String object |
String |
GetOptimizationStrategyName()
Deprecated. As of GridBroker 2.1, replaced by getOptimizationStrategyName() |
String |
getReportFileName()
Gets the name of a report file |
String |
GetReportFileName()
Deprecated. As of GridBroker 2.1, replaced by getReportFileName() |
String[] |
getResourceNameList()
Gets a list of resources' names |
String[] |
GetResourcesNameList()
Deprecated. As of GridBroker 2.1, replaced by getResourceNameList() |
double |
getStartTime()
Gets the experiment start time |
double |
GetStartTime()
Deprecated. As of GridBroker 2.1, replaced by getStartTime() |
double |
getTimeUtilFactor()
Gets the time utilization factor |
double |
GridletCompletionFactor()
Deprecated. As of GridBroker 2.1, replaced by getGridletCompletionFactor() |
boolean |
isSuccessful()
Checks whether the Gridlets have been executed successfully or not |
boolean |
IsSuccessful()
Deprecated. As of GridBroker 2.1, replaced by isSuccessful() |
void |
setBudget(double budget)
Sets the experiment budget |
void |
SetBudget(double budget)
Deprecated. As of GridBroker 2.1, replaced by setBudget(double) |
void |
setDeadline(double deadline)
Sets the experiment deadline |
void |
SetDeadline(double deadline)
Deprecated. As of GridBroker 2.1, replaced by setDeadline(double) |
void |
setDeadlineBudget(double deadline,
double budget)
Sets the experiment deadline and budget |
void |
SetDeadlineBudget(double deadline,
double budget)
Deprecated. As of GridBroker 2.1, replaced by setDeadlineBudget(double, double) |
void |
setEndTime()
Sets the experiment end time |
void |
SetEndTime()
Deprecated. As of GridBroker 2.1, replaced by setEndTime() |
void |
setStartTime()
Sets the current time as the experiment start time |
void |
SetStartTime()
Deprecated. As of GridBroker 2.1, replaced by setStartTime() |
double |
TimeUtilizationFactor()
Deprecated. As of GridBroker 2.1, replaced by getTimeUtilFactor() |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OPTIMIZE_COST
public static final int OPTIMIZE_COST_PLUS
public static final int OPTIMIZE_COST_TIME
public static final int OPTIMIZE_TIME
public static final int OPTIMIZE_NONE
Constructor Detail |
public Experiment(int id, GridletList glList, int optStrategy, boolean factorFlag, double D_value, double B_value, String reportFile, String[] resNameList)
id
- experiment IDglList
- A list containing Gridlets that has details on the
list of the jobsoptStrategy
- the optimization strategyfactorFlag
- 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
two relaxation parametersD_value
- if factorFlag is true, then it is
d-factor, else it is deadline valueB_value
- if factorFlag is true, then it is
b-factor, else it is budget valuereportFile
- the name of the file into which scheduling
report is to placedresNameList
- a list of resource namesMethod Detail |
public int GetID()
getExperimentID()
public int getExperimentID()
public GridletList GetGridletList()
getGridletList()
GridletList
public GridletList getGridletList()
GridletList
public String[] GetResourcesNameList()
getResourceNameList()
public String[] getResourceNameList()
public int GetOptimizationStrategy()
getOptimizationStrategy()
public int getOptimizationStrategy()
public String GetOptimizationStrategyName()
getOptimizationStrategyName()
public String getOptimizationStrategyName()
public boolean Get_DB_factor_flag()
getFactorFlag()
public boolean getFactorFlag()
public double GetB_factor()
getBudgetFactor()
public double getBudgetFactor()
public double GetD_factor()
getDeadlineFactor()
public double getDeadlineFactor()
public void SetDeadline(double deadline)
setDeadline(double)
deadline
- the deadline valuepublic void setDeadline(double deadline)
deadline
- the deadline valuepublic double GetDeadline()
getDeadline()
public double getDeadline()
public double GetDeadlineTime()
getDeadlineTime()
public double getDeadlineTime()
public void SetBudget(double budget)
setBudget(double)
budget
- the budget valuepublic void setBudget(double budget)
budget
- the budget valuepublic double GetBudget()
getBudget()
public double getBudget()
public void SetDeadlineBudget(double deadline, double budget)
setDeadlineBudget(double, double)
deadline
- the deadline valuebudget
- the budget valuepublic void setDeadlineBudget(double deadline, double budget)
deadline
- the deadline valuebudget
- the budget valuepublic String GetReportFileName()
getReportFileName()
public String getReportFileName()
public void SetStartTime()
setStartTime()
public void setStartTime()
public double GetStartTime()
getStartTime()
public double getStartTime()
public void SetEndTime()
setEndTime()
public void setEndTime()
public double GetEndTime()
getEndTime()
public double getEndTime()
public int GetNoOfGridlets()
getNumGridlet()
public int getNumGridlet()
public double GetBudgetSpent()
getBudgetSpent()
public double getBudgetSpent()
public int GetNoOfSuccessfulGridlets()
getNumSuccessfulGridlet()
public int getNumSuccessfulGridlet()
public boolean IsSuccessful()
isSuccessful()
public boolean isSuccessful()
public double GridletCompletionFactor()
getGridletCompletionFactor()
public double getGridletCompletionFactor()
public double TimeUtilizationFactor()
getTimeUtilFactor()
public double getTimeUtilFactor()
public double BudgetUtilizationFactor()
getBudgetUtilFactor()
public double getBudgetUtilFactor()
public Accumulator GetAllGridletsLengthAccumulator()
getAllGridletLengthAccumulator()
Accumulator
public Accumulator getAllGridletLengthAccumulator()
Accumulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |