|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAllocationAction
public class AllocationAction
AllocationAction corresponds to an allocation decision made
by an allocation policy. When an event happens, about which, an
AllocationListener has to be notified, an instance of this
class is created and passed to the listener.
| Constructor Summary | |
|---|---|
AllocationAction(ActionType type)
Creates a new AllocationAction object. |
|
| Method Summary | |
|---|---|
ActionType |
getActionType()
Get the type of the allocation action |
LinkedList<ScheduleItem> |
getScheduleItems()
Gets the ScheduleItems associated with this action. |
int |
getSubject()
Gets the id of the subject or entity that created this action |
void |
setActionType(ActionType type)
Sets the type of allocation action |
boolean |
setScheduleItems(LinkedList<ScheduleItem> list)
Sets the schedule items associated with this action |
void |
setSubject(int subject)
Sets the id of the subject or entity that created this action |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocationAction(ActionType type)
AllocationAction object.
type - the type of action performed| Method Detail |
|---|
public LinkedList<ScheduleItem> getScheduleItems()
ScheduleItems associated with this action.
public boolean setScheduleItems(LinkedList<ScheduleItem> list)
list - the schedule items
true if the schedule items have been
set; false otherwisepublic ActionType getActionType()
public void setActionType(ActionType type)
type - the allocation actionpublic int getSubject()
public void setSubject(int subject)
subject - the id of the subject or entity that created this action
|
GridSim 5.0 beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||