Class BrokerResource


class BrokerResource

A class that maintains Resource details and Gridlets assigned to it.
It is used extensively in GridBroker class.


Field Summary
 doubleAvailableMIPS
           
 GridletListglList
           
 doubleLatestLoad
           
 intNoOfGridletsDispatchedSoFar
           
 intNoOfGridletsFinishedSoFar
           
 ResourceCharacteristicsresource
           

Constructor Summary
BrokerResource(ResourceCharacteristics resource, double LatestLoad)
           

Method Summary
 doubleExpectedProcessingCost(Gridlet gl)
          Identify an expected processing cost on the resource
 doubleGetAvailableMI(double EndTime)
          Returns available MIs depending on resource load from current time.
 booleanIsOKtoAssignGridletToResource(Gridlet gl, double EndTime)
          This module checks available MI on a single PE within available deadline period
is sufficient for a Gridlet to run successful.
 intNoOfGridletsFinished()
           
 intNoOfGridletsInExec()
           
 intNoOfGridletsInQueue()
           
 intNoOfGridletsInReady()
           
 doubleRemainingTimePeriodFromNow(double EndTime)
          It returns Number of System Time Units (say Sec.) from
current time to the EndTime (say Deadline)

Field Detail

AvailableMIPS

public double AvailableMIPS

glList

public GridletList glList

LatestLoad

public double LatestLoad

NoOfGridletsDispatchedSoFar

public int NoOfGridletsDispatchedSoFar

NoOfGridletsFinishedSoFar

public int NoOfGridletsFinishedSoFar

resource

public ResourceCharacteristics resource
Constructor Detail

BrokerResource

public BrokerResource(ResourceCharacteristics resource, double LatestLoad)
Method Detail

ExpectedProcessingCost

public double ExpectedProcessingCost(Gridlet gl)
Identify an expected processing cost on the resource
Parameters:
gl - Gridlet object.
Returns: an expected processing cost on the resource

GetAvailableMI

public double GetAvailableMI(double EndTime)
Returns available MIs depending on resource load from current time.

IsOKtoAssignGridletToResource

public boolean IsOKtoAssignGridletToResource(Gridlet gl, double EndTime)
This module checks available MI on a single PE within available deadline period
is sufficient for a Gridlet to run successful. if yes, it returns TRUE otherwise, false.

NoOfGridletsFinished

public int NoOfGridletsFinished()

NoOfGridletsInExec

public int NoOfGridletsInExec()

NoOfGridletsInQueue

public int NoOfGridletsInQueue()

NoOfGridletsInReady

public int NoOfGridletsInReady()

RemainingTimePeriodFromNow

public double RemainingTimePeriodFromNow(double EndTime)
It returns Number of System Time Units (say Sec.) from
current time to the EndTime (say Deadline)

Association Links

to Class gridsim.ResourceCharacteristics

to Class gridsim.GridletList