|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectProfileEntry
PartProfileEntry
public class PartProfileEntry
The PartProfileEntry 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. It differs from SingleProfileEntry by
having information about multiple resource partitions.
PERange,
PERangeList| Constructor Summary | |
|---|---|
PartProfileEntry(double time,
int numPart)
Creates a new instance of PartProfileEntry |
|
| Method Summary | |
|---|---|
void |
addRanges(int partId,
PERangeList list)
Adds the ranges provided to the list of ranges available |
PartProfileEntry |
clone(double time)
Returns a clone of this entry. |
PERangeList |
getAvailRanges()
Returns the overall list of ranges available at this entry in all partitions. |
PERangeList |
getAvailRanges(int partId)
Returns the list of ranges available for a given partition at this entry |
int |
getNumPE()
Gets the number of PEs associated with this entry |
int |
getNumPE(int partId)
Gets the number of PEs at a partition associated with this entry. |
void |
setAvailRanges(int partId,
PERangeList availRanges)
Sets the ranges of PEs available at this entry |
String |
toString()
Creates a string representation of this entry |
void |
transferPEs(int partId,
PERangeList list)
Transfers PEs from partitions to one selected partition |
| 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 PartProfileEntry(double time,
int numPart)
PartProfileEntry
time - the time associated with this entrynumPart - the number of partitions| Method Detail |
|---|
public PERangeList getAvailRanges(int partId)
partId - the id of the partition.
IndexOutOfBoundsException - if the partition id is
out of the bounds.public PERangeList getAvailRanges()
getAvailRanges in class ProfileEntry
public void setAvailRanges(int partId,
PERangeList availRanges)
partId - the id of the partition.availRanges - the list of ranges of PEs available
IndexOutOfBoundsException - if the partition id is
out of the bounds.
public void addRanges(int partId,
PERangeList list)
partId - the id of the partition.list - the list to be added
IndexOutOfBoundsException - if the partition id is
out of the bounds.public int getNumPE()
getNumPE in class ProfileEntrypublic int getNumPE(int partId)
partId - the id of the partition.
public String toString()
toString in class Objectpublic PartProfileEntry clone(double time)
clone in class ProfileEntrytime - the time for the new entry
public void transferPEs(int partId,
PERangeList list)
partId - the partition receiving the rangeslist - the list of ranges
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||