Class RunTaskEvent

java.lang.Object
   |
   +----SimEvent
           |
           +----TaskEvent
                   |
                   +----RunTaskEvent

public class RunTaskEvent
extends TaskEvent
This event is sent to a task in order to run it.

See Also:
Task

Constructor Index

 o RunTaskEvent(Object, EventDestination, float, long, int, float)
Constructs a run task event.

Method Index

 o getPEId()
Returns the identifier for processing element to run task on.
 o getTimeSlice()
Returns the length of the time slice.
 o toString()
Returns a string representation of this object.

Constructors

 o RunTaskEvent
 public RunTaskEvent(Object from,
                     EventDestination to,
                     float time,
                     long taskId,
                     int peId,
                     float timeSlice)
Constructs a run task event.

Parameters:
from - sender of event.
to - receiver of event.
time - time stamp.
taskId - global task identifier of destination task.
peId - identifier for processing element to run task on.
timeSlice - length of time slice.

Methods

 o getPEId
 public int getPEId()
Returns the identifier for processing element to run task on.

Returns:
the identifier for processing element to run task on.
 o getTimeSlice
 public float getTimeSlice()
Returns the length of the time slice.

Returns:
the length of the time slice.
 o toString
 public String toString()
Returns a string representation of this object.

Returns:
a string representation of this object.
Overrides:
toString in class SimEvent