public interface ISimProcess extends IEntity
lifeCycle
method. in this way, this class supports the so-called process-interaction
simulation modelling.
By contrast to AbstractSimEventDelegator
s, simulated time may pass while executing the
process lifecycle.
Modifier and Type | Method and Description |
---|---|
void |
addProcessListener(ISimProcessListener l) |
boolean |
isTerminated()
Returns whether this process has finished its execution.
|
void |
passivate()
Passivates this process.
|
void |
passivate(double delay)
Puts the process asleep and resumes after waiting
delay simulated time units. |
void |
removeProcessListener(ISimProcessListener l) |
void |
scheduleAt(double delay)
Resumes the process after waiting
delay simulated time units. |
isScheduled, reschedule
void passivate()
scheduleAt
method.void scheduleAt(double delay)
delay
simulated time units.delay
- the period of simulated time to wait before this process is activated again.void passivate(double delay)
delay
simulated time units.delay
- the period of simulated time to wait before this process is activated again.boolean isTerminated()
void addProcessListener(ISimProcessListener l)
void removeProcessListener(ISimProcessListener l)