gridsim
Class ResGridlet

java.lang.Object
  |
  +--gridsim.ResGridlet

class ResGridlet
extends java.lang.Object

Gridlets at Grid Resource. It maintains Gridlets along with details arrival and departure time with machine and PE on which they are executed.


Constructor Summary
ResGridlet(gridsim.Gridlet gridlet)
           
 
Method Summary
 double GetArrivalTime()
           
 double GetFinishTime()
           
 gridsim.Gridlet GetGridlet()
           
 int GetMachineID()
           
 int GetPEID()
           
 double GetRemainingLength()
           
 void SetFinishTimeForSpaceSharedResource(double AvailableMIPSRating)
          Determine Time by which this Gridlet can finish
 void SetFinishTimeForTimeSharedResource(double AvailableMIPSRating, gridsim.ResourceCalendar rCalendar)
          Determine Time by which this Gridlet can finish
 void SetIDs(int machine_id, int PE_id)
           
 void UpdateGridletFinishedSoFar(double mi_length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResGridlet

public ResGridlet(gridsim.Gridlet gridlet)
Method Detail

SetIDs

public void SetIDs(int machine_id,
                   int PE_id)

GetMachineID

public int GetMachineID()

GetPEID

public int GetPEID()

GetRemainingLength

public double GetRemainingLength()

UpdateGridletFinishedSoFar

public void UpdateGridletFinishedSoFar(double mi_length)

GetArrivalTime

public double GetArrivalTime()

SetFinishTimeForTimeSharedResource

public void SetFinishTimeForTimeSharedResource(double AvailableMIPSRating,
                                               gridsim.ResourceCalendar rCalendar)
Determine Time by which this Gridlet can finish

Parameters:
AvailableMIPSRating - the available MIPS considering current hour load.

SetFinishTimeForSpaceSharedResource

public void SetFinishTimeForSpaceSharedResource(double AvailableMIPSRating)
Determine Time by which this Gridlet can finish

Parameters:
AvailableMIPSRating - - this is 100% availability of PE MIPS since it runs in dedicated mode. NOTE: To be used by Space shared resources only.

GetFinishTime

public double GetFinishTime()

GetGridlet

public gridsim.Gridlet GetGridlet()