Class SuspendedTaskEvent

java.lang.Object
   |
   +----SimEvent
           |
           +----ProcessorEvent
                   |
                   +----SuspendedTaskEvent

public class SuspendedTaskEvent
extends ProcessorEvent
A suspended task event.

See Also:
Task

Variable Index

 o COMMUNICATING
Reason for suspension is communication.
 o DEADLINE
Reason for suspension is that the Task has reached it's deadline
 o ENDED
Reason for suspension is end of task.
 o IO
Reason for suspension is I/O.
 o SYNCHRONIZING
Reason for suspension is synchronization.

Constructor Index

 o SuspendedTaskEvent(Object, EventDestination, int, int, int)
Constructs an suspended task event.

Method Index

 o getReason()
Returns the reason for suspension.
 o toString()
Returns a string representation of this object.

Variables

 o ENDED
 public static final int ENDED
Reason for suspension is end of task.

 o IO
 public static final int IO
Reason for suspension is I/O.

 o SYNCHRONIZING
 public static final int SYNCHRONIZING
Reason for suspension is synchronization.

 o COMMUNICATING
 public static final int COMMUNICATING
Reason for suspension is communication.

 o DEADLINE
 public static final int DEADLINE
Reason for suspension is that the Task has reached it's deadline

Constructors

 o SuspendedTaskEvent
 public SuspendedTaskEvent(Object from,
                           EventDestination to,
                           int time,
                           int peId,
                           int reason)
Constructs an suspended task event.

Parameters:
from - sender of event.
to - receiver of event.
time - time stamp.
peId - identifier for processing element sender runs on.
reason - reason for suspension.

Methods

 o getReason
 public int getReason()
Returns the reason for suspension.

Returns:
the reason for suspension.
 o toString
 public String toString()
Returns a string representation of this object.

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