GridSim 5.0 beta

gridsim.resFailure
Class AvailabilityInfo

Object
  extended by AvailabilityInfo

public class AvailabilityInfo
extends Object

This class is used by GridSim users to check whether a particular resource is working or is totally failed.

Since:
GridSim Toolkit 4.1
Author:
Agustin Caminero

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

AvailabilityInfo

public AvailabilityInfo(int res,
                        int src)
Creates a new object of this class

Parameters:
res - a resource id
src - the sender id
Method Detail

getSrcID

public int getSrcID()
Gets the source or sender id

Returns:
sender id

getResID

public int getResID()
Gets the resource id

Returns:
resource id

getAvailability

public boolean getAvailability()
Checks the availability of this resource

Returns:
true if available, false otherwise

setSrcID

public void setSrcID(int src)
Sets the source or sender id

Parameters:
src - the sender id

setResID

public void setResID(int res)
Sets the resource id

Parameters:
res - a resource id

setAvailability

public void setAvailability(boolean av)
Sets the resource availability

Parameters:
av - true if available, false otherwise

GridSim 5.0 beta

The University of Melbourne, Australia, 2009