|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--gridsim.ResGridlet
GridSim ResGridlet represents a Gridlet submitted to the resource for processing.
It contains a Gridlet object along with its arrival time and the ID of the machine and the PE (Processing Element) allocated to it. It acts as a placeholder for maintaining the amount of resource share allocated at various times for simulating time-shared and space-shared scheduling using internal events.
Constructor Summary | |
ResGridlet(Gridlet gridlet)
Allocates a new ResGridlet object upon the arrival of a Gridlet object. |
Method Summary | |
double |
GetArrivalTime()
Deprecated. As of GridSim 2.1, replaced by getGridletArrivalTime() |
double |
GetFinishTime()
Deprecated. As of GridSim 2.1, replaced by getGridletFinishTime() |
Gridlet |
getGridlet()
Get this Gridlet object |
Gridlet |
GetGridlet()
Deprecated. As of GridSim 2.1, replaced by getGridlet() |
double |
getGridletArrivalTime()
Get arrival time of a gridlet |
double |
getGridletFinishTime()
Get the Gridlet's finish time |
int |
getMachineID()
Get machine ID |
int |
GetMachineID()
Deprecated. As of GridSim 2.1, replaced by getMachineID() |
int |
getPEID()
Get PE ID |
int |
GetPEID()
Deprecated. As of GridSim 2.1, replaced by getPEID() |
double |
getRemainingGridletLength()
Get the remaining gridlet length |
double |
GetRemainingLength()
Deprecated. As of GridSim 2.1, replaced by getRemainingGridletLength() |
void |
setFinishTimeForSpaceSharedResource(double availableRating)
Determine Time by which this Gridlet can finish. |
void |
SetFinishTimeForSpaceSharedResource(double availableRating)
Deprecated. As of GridSim 2.1, replaced by setFinishTimeForSpaceSharedResource(double) |
void |
setFinishTimeForTimeSharedResource(double availableRating,
ResourceCalendar rCalendar)
Determine Time by which this Gridlet can finish. |
void |
SetFinishTimeForTimeSharedResource(double availableRating,
ResourceCalendar rCalendar)
Deprecated. As of GridSim 2.1, replaced by setFinishTimeForTimeSharedResource(double,
ResourceCalendar) |
void |
SetIDs(int machineID,
int peID)
Deprecated. As of GridSim 2.1, replaced by setMachineAndPEID(int, int) |
void |
setMachineAndPEID(int machineID,
int peID)
Set the machine and PE (Processing Element) ID |
void |
updateGridletFinishedSoFar(double miLength)
A method that updates the length of gridlet that has been completed |
void |
UpdateGridletFinishedSoFar(double miLength)
Deprecated. As of GridSim 2.1, replaced by updateGridletFinishedSoFar(double) |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResGridlet(Gridlet gridlet)
gridlet
- a gridlet objectGridSim.Clock()
Method Detail |
public void SetIDs(int machineID, int peID)
setMachineAndPEID(int, int)
machineID
- machine IDpeID
- PE IDpublic void setMachineAndPEID(int machineID, int peID)
machineID
- machine IDpeID
- PE IDpublic int GetMachineID()
getMachineID()
public int getMachineID()
public int GetPEID()
getPEID()
public int getPEID()
public double GetRemainingLength()
getRemainingGridletLength()
public double getRemainingGridletLength()
public void UpdateGridletFinishedSoFar(double miLength)
updateGridletFinishedSoFar(double)
miLength
- gridlet length in Million Instructions (MI)public void updateGridletFinishedSoFar(double miLength)
miLength
- gridlet length in Million Instructions (MI)public double GetArrivalTime()
getGridletArrivalTime()
public double getGridletArrivalTime()
public void SetFinishTimeForTimeSharedResource(double availableRating, ResourceCalendar rCalendar) throws NullPointerException
setFinishTimeForTimeSharedResource(double,
ResourceCalendar)
availableRating
- the available MIPS considering current hour
loadrCalendar
- Resourcce Calendar
NullPointerException
- if ResourceCalendar object is nullpublic void setFinishTimeForTimeSharedResource(double availableRating, ResourceCalendar rCalendar) throws NullPointerException
availableRating
- the available MIPS considering current hour
loadrCalendar
- Resourcce Calendar
NullPointerException
- if ResourceCalendar object is nullpublic void SetFinishTimeForSpaceSharedResource(double availableRating)
setFinishTimeForSpaceSharedResource(double)
availableRating
- this is 100% availability of PE MIPS since
it runs in dedicated modepublic void setFinishTimeForSpaceSharedResource(double availableRating)
availableRating
- this is 100% availability of PE MIPS since
it runs in dedicated modepublic double GetFinishTime()
getGridletFinishTime()
public double getGridletFinishTime()
public Gridlet GetGridlet()
getGridlet()
public Gridlet getGridlet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |