GridSim 5.0 beta

gridsim.parallel.gui
Class AllocationAction

Object
  extended by AllocationAction

public class AllocationAction
extends Object

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.

Since:
5.0
Author:
Marcos Dias de Assuncao

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

AllocationAction

public AllocationAction(ActionType type)
Creates a new AllocationAction object.

Parameters:
type - the type of action performed
Method Detail

getScheduleItems

public LinkedList<ScheduleItem> getScheduleItems()
Gets the ScheduleItems associated with this action.

Returns:
the gridlets

setScheduleItems

public boolean setScheduleItems(LinkedList<ScheduleItem> list)
Sets the schedule items associated with this action

Parameters:
list - the schedule items
Returns:
true if the schedule items have been set; false otherwise

getActionType

public ActionType getActionType()
Get the type of the allocation action

Returns:
the allocation action type

setActionType

public void setActionType(ActionType type)
Sets the type of allocation action

Parameters:
type - the allocation action

getSubject

public int getSubject()
Gets the id of the subject or entity that created this action

Returns:
the id of the subject or entity that created this action

setSubject

public void setSubject(int subject)
Sets the id of the subject or entity that created this action

Parameters:
subject - the id of the subject or entity that created this action

GridSim 5.0 beta

The University of Melbourne, Australia, 2009