|
GridSim v4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectgridsim.resFailure.AvailabilityInfo
This class is used by GridSim users to check whether a particular resource is working or is totally failed.
| Constructor Summary | |
AvailabilityInfo(int res,
int src)
Creates a new object of this class |
|
| Method Summary | |
boolean |
getAvailability()
Checks the availability of this resource |
int |
getResID()
Gets the resource id |
int |
getSrcID()
Gets the source or sender id |
void |
setAvailability(boolean av)
Sets the resource availability |
void |
setResID(int res)
Sets the resource id |
void |
setSrcID(int src)
Sets the source or sender id |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AvailabilityInfo(int res,
int src)
res - a resource idsrc - the sender id| Method Detail |
public int getSrcID()
public int getResID()
public boolean getAvailability()
public void setSrcID(int src)
src - the sender idpublic void setResID(int res)
res - a resource idpublic void setAvailability(boolean av)
av - true if available, false otherwise
|
GridSim v4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||