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, reschedule
getModel, getName
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isScheduled, reschedule
public AbstractSimProcessDelegator(ISimulationModel model, String name)
public long getRawId()
public String getId()
public abstract void lifeCycle()
public boolean isTerminated()
isTerminated
in interface ISimProcess
public void passivate()
scheduleAt
method.passivate
in interface ISimProcess
public void scheduleAt(double d)
delay
simulated time units.scheduleAt
in interface ISimProcess
d
- 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 ISimProcess
delay
- the period of simulated time to wait before this process is activated again.public void addProcessListener(ISimProcessListener l)
addProcessListener
in interface ISimProcess
public void removeProcessListener(ISimProcessListener l)
removeProcessListener
in interface ISimProcess