|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object FailureMsg
public class FailureMsg
This class is used by
RegionalGISWithFailure
to commnunicate with
GridResourceWithFailure
for simulating a resource failure.
Constructor Summary | |
---|---|
FailureMsg(double time,
int rid)
Creates a new failure message |
Method Summary | |
---|---|
double |
getNumMachines()
This method returns the number of machines which will fail in this resource |
int |
getRes()
This method returns the res_id attribute of the ResourceFailure object |
double |
getTime()
This method returns the time attribute of the ResourceFailure object |
void |
setNumMachines(int n)
This method sets the numMachines attribute of the ResourceFailure object |
void |
setRes(int r)
This method sets the res_id attribute of the ResourceFailure object |
void |
setTime(double time)
This method sets the time attribute of the ResourceFailure object |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FailureMsg(double time, int rid)
time
- the time that the failure will lastrid
- the resource idMethod Detail |
---|
public void setTime(double time)
time
- the time that the failure will lastpublic double getTime()
public void setRes(int r)
r
- the resource id of the resourcepublic int getRes()
public void setNumMachines(int n)
n
- the number of machines which will fail in this resourcepublic double getNumMachines()
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |