public interface ISchedulableProcess extends IEntity
Modifier and Type | Method and Description |
---|---|
void |
activate()
Notifies the process to resume its execution.
|
void |
addTerminatedObserver(IActiveResource o) |
void |
fireTerminated() |
String |
getId()
Unique identifier of the process.
|
int |
getPriority() |
ISchedulableProcess |
getRootProcess()
Returns the root process that spawned this processes (directly or indirectly).
|
boolean |
isFinished()
Return whether this process is finished
|
void |
passivate()
Notifies the process to suspend its execution.
|
void |
removeTerminatedObserver(IActiveResource o) |
void |
setPriority(int prio) |
void |
timeout(String timeoutFailureName)
Forces a suspended process to run into a timeout failure.
|
isScheduled, reschedule
void activate()
void passivate()
String getId()
ISchedulableProcess getRootProcess()
boolean isFinished()
void fireTerminated()
void addTerminatedObserver(IActiveResource o)
void removeTerminatedObserver(IActiveResource o)
int getPriority()
void setPriority(int prio)
void timeout(String timeoutFailureName)
timeoutFailureName
- the name of the triggered timeout failure