|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ProfileEntry SingleProfileEntry
public class SingleProfileEntry
The SingleProfileEntry
class represents an entry in the availability
profile. It contains the list of ranges of PEs available at a particular
time. This time may represent either the start time or completion of
a job or advance reservation.
PERange
,
PERangeList
,
SingleProfile
Constructor Summary | |
---|---|
SingleProfileEntry(double time)
Creates a new instance of SingleProfileEntry |
|
SingleProfileEntry(double time,
PERangeList ranges)
Creates a new instance of SingleProfileEntry |
Method Summary | |
---|---|
boolean |
addRanges(PERangeList list)
Adds the ranges provided to the list of ranges available |
SingleProfileEntry |
clone(double time)
Returns a clone of this entry. |
PERangeList |
getAvailRanges()
Returns the list of ranges available at this entry |
int |
getNumPE()
Gets the number of PEs associated with this entry |
void |
setAvailRanges(PERangeList availRanges)
Sets the ranges of PEs available at this entry |
String |
toString()
Creates a string representation of this entry |
Methods inherited from class ProfileEntry |
---|
compareTo, decreaseJob, getNumJobs, getTime, increaseJob, setTime |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingleProfileEntry(double time)
SingleProfileEntry
time
- the time associated with this entrypublic SingleProfileEntry(double time, PERangeList ranges)
SingleProfileEntry
time
- the time associated with this entryranges
- the list of ranges of PEs availableMethod Detail |
---|
public PERangeList getAvailRanges()
getAvailRanges
in class ProfileEntry
public void setAvailRanges(PERangeList availRanges)
availRanges
- the list of ranges of PEs availablepublic boolean addRanges(PERangeList list)
list
- the list to be added
public int getNumPE()
getNumPE
in class ProfileEntry
public String toString()
toString
in class Object
public SingleProfileEntry clone(double time)
clone
in class ProfileEntry
time
- the time for the new entry
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |