GridSim 5.0 beta

gridsim.parallel.profile
Interface ScheduleItem

All Known Implementing Classes:
ServerReservation, SSGridlet

public interface ScheduleItem

ScheduleItem represents an item that can be put in a scheduling queue. This class is used to make it easier to update availability profiles, job cancellation in space shared allocation policies, among other things. In addition, this is used by visualisation windows for GUI purposes. The item can be a job or an advance reservation.

Since:
5.0
Author:
Marcos Dias de Assuncao

Field Summary
static int TIME_UNIT_HOUR
          Hour as the time unit
static int TIME_UNIT_MINUTE
          Minute as the time unit
static int TIME_UNIT_SECOND
          Second as the time unit
 
Method Summary
 double getActualFinishTime()
          Gets the item's real finish time.
 double getExpectedFinishTime()
          Gets the item's expected finish time.
 int getID()
          Returns an ID for this item
 int getNumPE()
          Returns the number of PEs used by this item
 int getPartitionID()
          Gets the id of the partition or queue to which this item was scheduled
 PERangeList getPERangeList()
          Gets the list of ranges of PEs used by this item
 int getPriority()
          Gets the priority of this item assigned by the scheduler
 int getSenderID()
          Returns the id of the user that created this item
 double getStartTime()
          Gets the item's start time
 int getStatus()
          Returns the status of this item
 double getSubmissionTime()
          Returns the time of submission of this item
 boolean hasReserved()
          If the item is a job, this checks whether the item is associated with an advance reservation or not
 boolean isAdvanceReservation()
          Checks whether the item is an advance reservation or not
 String toString(int timeUnit)
          Creates a String representation of this item for displaying purposes
 

Field Detail

TIME_UNIT_SECOND

static final int TIME_UNIT_SECOND
Second as the time unit

See Also:
Constant Field Values

TIME_UNIT_MINUTE

static final int TIME_UNIT_MINUTE
Minute as the time unit

See Also:
Constant Field Values

TIME_UNIT_HOUR

static final int TIME_UNIT_HOUR
Hour as the time unit

See Also:
Constant Field Values
Method Detail

getID

int getID()
Returns an ID for this item

Returns:
the item's ID

getSenderID

int getSenderID()
Returns the id of the user that created this item

Returns:
the user id

getStatus

int getStatus()
Returns the status of this item

Returns:
the status of the item

getNumPE

int getNumPE()
Returns the number of PEs used by this item

Returns:
the number of items

getSubmissionTime

double getSubmissionTime()
Returns the time of submission of this item

Returns:
the submission time

getStartTime

double getStartTime()
Gets the item's start time

Returns:
start time of an item or -1.0 if not known

getActualFinishTime

double getActualFinishTime()
Gets the item's real finish time. That is, the actual time when the item is to finish

Returns:
finish time of an item or -1.0 if not known

getExpectedFinishTime

double getExpectedFinishTime()
Gets the item's expected finish time. That is, this end time is based on the estimate provided by the user and may not reflect the actual finish time of the schedule item.

Returns:
finish time of an item or equals to the actual finish time if not known.

getPriority

int getPriority()
Gets the priority of this item assigned by the scheduler

Returns:
the priority or -1 if not found

getPartitionID

int getPartitionID()
Gets the id of the partition or queue to which this item was scheduled

Returns:
the partition id or -1 if not found

getPERangeList

PERangeList getPERangeList()
Gets the list of ranges of PEs used by this item

Returns:
a list containing the ranges

isAdvanceReservation

boolean isAdvanceReservation()
Checks whether the item is an advance reservation or not

Returns:
true if the item is an advance reservation or false if it is not.

hasReserved

boolean hasReserved()
If the item is a job, this checks whether the item is associated with an advance reservation or not

Returns:
true if an advance reservation for this item has been made, or false otherwise.

toString

String toString(int timeUnit)
Creates a String representation of this item for displaying purposes

Parameters:
timeUnit - the time unit to be used
Returns:
a String representation of this item for displaying purposes
See Also:
TIME_UNIT_SECOND, TIME_UNIT_MINUTE, TIME_UNIT_HOUR

GridSim 5.0 beta

The University of Melbourne, Australia, 2009