M - the type of the simulation modelpublic abstract class AbstractSimProcessDelegator extends AbstractSimEntityDelegator implements ISimProcess
ISimProcess| Constructor and Description |
|---|
AbstractSimProcessDelegator(ISimulationModel model,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessListener(ISimProcessListener l) |
String |
getId() |
long |
getRawId() |
boolean |
isTerminated()
Returns whether this process has finished its execution.
|
abstract void |
lifeCycle() |
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 d)
Resumes the process after waiting
delay simulated time units. |
getEncapsulatedEntity, isScheduled, reschedulegetModel, getNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisScheduled, reschedulepublic AbstractSimProcessDelegator(ISimulationModel model, String name)
public long getRawId()
public String getId()
public abstract void lifeCycle()
public boolean isTerminated()
isTerminated in interface ISimProcesspublic void passivate()
scheduleAt method.passivate in interface ISimProcesspublic void scheduleAt(double d)
delay simulated time units.scheduleAt in interface ISimProcessd - the period of simulated time to wait before this process is activated again.public void passivate(double delay)
delay simulated time units.passivate in interface ISimProcessdelay - the period of simulated time to wait before this process is activated again.public void addProcessListener(ISimProcessListener l)
addProcessListener in interface ISimProcesspublic void removeProcessListener(ISimProcessListener l)
removeProcessListener in interface ISimProcess