|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object TimeSlot
public class TimeSlot
This class defines a time slot. A time slot can be used to represent a free fragment in the scheduling queue. This may be useful for users who want to implement policies that perform best-fit, next-fit or worst-fit time slot selection. For a description on how time slots can be utilised, please read the following paper about the MAUI scheduler:
PERange
,
PERangeList
Constructor Summary | |
---|---|
TimeSlot(double startTime,
double finishTime,
PERangeList ranges)
Default constructor sets |
Method Summary | |
---|---|
double |
getDuration()
Returns the time duration of this time slot. |
double |
getFinishTime()
Returns the finish time of this time slot |
int |
getNumPE()
Returns the number of PEs available at the time slot |
PERangeList |
getPERanges()
Returns the PE ranges available at the time slot |
double |
getStartTime()
Returns the start time of this time slot |
boolean |
setFinishTime(double finishTime)
Sets the finish time of the time slot |
boolean |
setPERanges(PERangeList ranges)
Sets the ranges of the time slot |
boolean |
setStartTime(double startTime)
Sets the start time of the time slot |
String |
toString()
Creates a string representation of the list |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeSlot(double startTime, double finishTime, PERangeList ranges)
startTime
- the start time of the time slotfinishTime
- the finish time of the time slotranges
- the list of PE ranges available at the slotMethod Detail |
---|
public boolean setStartTime(double startTime)
startTime
- the start time
true
if set successfully; false
otherwise.public boolean setFinishTime(double finishTime)
finishTime
- the finish time
true
if set successfully; false
otherwise.public boolean setPERanges(PERangeList ranges)
ranges
- the ranges of this time slot
true
if set successfully; false
otherwise.null
public double getStartTime()
public double getFinishTime()
public double getDuration()
public PERangeList getPERanges()
public int getNumPE()
public String toString()
toString
in class Object
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |