|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectProfile
SingleProfile
public class SingleProfile
This class represents the profile containing the ranges of PEs available at given simulation times. This availability profile does not provide features to manage multiple resource partitions.
Profile,
SingleProfileEntry,
PERangeList,
TimeSlot| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Profile |
|---|
Profile.Entry |
| Field Summary |
|---|
| Fields inherited from class Profile |
|---|
avail |
| Constructor Summary | |
|---|---|
protected |
SingleProfile()
Creates a new Profile object. NOTE: if you use this constructor, you need to insert an initial entry with the number of PEs. |
|
SingleProfile(int numPE)
Creates an availability profile for a resource providing the number of PEs in the resource. |
protected |
SingleProfile(LinkedTreeMap<Double,ProfileEntry> avail)
Protected constructor used by the cloning operations. |
| Method Summary | |
|---|---|
boolean |
addTimeSlot(double startTime,
double finishTime,
PERangeList list)
Includes a time slot in this availability profile. |
SingleProfile |
clone()
Returns shallow copy of this object. NOTE: this method does not clone the entries. |
SingleProfile |
copy()
Returns copy of this object. NOTE: this method clones the entries |
protected double |
currentTime()
This method returns the current time. |
Iterator<SingleProfileEntry> |
iterator()
Returns an iterator in case someone needs to iterate this object. |
| Methods inherited from class Profile |
|---|
add, allocatePERanges, checkAvailability, checkImmediateAvailability, findStartTime, findStartTime, getPrecedingValue, getSchedulingOptions, getTimeSlots, getTimeSlots, removePastEntries, toString |
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleProfile(int numPE)
SingleProfileEntry with time 0 and an initial PE range
of [0, numPE-1].
numPE - the number of PEs in the resource.SingleProfileEntryprotected SingleProfile(LinkedTreeMap<Double,ProfileEntry> avail)
avail - the availability information map.SingleProfileEntryprotected SingleProfile()
SingleProfileEntry| Method Detail |
|---|
public SingleProfile clone()
clone in class Objectcopy()public SingleProfile copy()
public boolean addTimeSlot(double startTime,
double finishTime,
PERangeList list)
startTime - the start time of the time slot.finishTime - the finish time of the time slot.list - the list of ranges of PEs in the slot.
public Iterator<SingleProfileEntry> iterator()
iterator in interface Iterable<SingleProfileEntry>SingleProfileEntry objects in this profile.protected double currentTime()
currentTime in class ProfileProfile.currentTime()
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||