Class AbstractSimProcessDelegator
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
-
- Type Parameters:
M- the type of the simulation model
- All Implemented Interfaces:
IEntity,ISimProcess
public abstract class AbstractSimProcessDelegator extends AbstractSimEntityDelegator implements ISimProcess
- See Also:
ISimProcess
-
-
Constructor Summary
Constructors Constructor Description AbstractSimProcessDelegator(ISimulationModel model, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddProcessListener(ISimProcessListener l)StringgetId()longgetRawId()booleanisTerminated()Returns whether this process has finished its execution.abstract voidlifeCycle()voidpassivate()Passivates this process.voidpassivate(double delay)Puts the process asleep and resumes after waitingdelaysimulated time units.voidpreempt()voidremoveProcessListener(ISimProcessListener l)voidscheduleAt(double d)Resumes the process after waitingdelaysimulated time units.-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, reschedule
-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getModel, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
isScheduled, reschedule
-
-
-
-
Constructor Detail
-
AbstractSimProcessDelegator
public AbstractSimProcessDelegator(ISimulationModel model, String name)
-
-
Method Detail
-
getRawId
public long getRawId()
-
getId
public String getId()
-
lifeCycle
public abstract void lifeCycle()
-
isTerminated
public boolean isTerminated()
Returns whether this process has finished its execution.- Specified by:
isTerminatedin interfaceISimProcess
-
passivate
public void passivate()
Passivates this process. This will suspend the simulation of the process until it is resumed again using thescheduleAtmethod.- Specified by:
passivatein interfaceISimProcess
-
scheduleAt
public void scheduleAt(double d)
Resumes the process after waitingdelaysimulated time units.- Specified by:
scheduleAtin interfaceISimProcess- Parameters:
d- the period of simulated time to wait before this process is activated again.
-
passivate
public void passivate(double delay)
Puts the process asleep and resumes after waitingdelaysimulated time units.- Specified by:
passivatein interfaceISimProcess- Parameters:
delay- the period of simulated time to wait before this process is activated again.
-
addProcessListener
public void addProcessListener(ISimProcessListener l)
- Specified by:
addProcessListenerin interfaceISimProcess
-
removeProcessListener
public void removeProcessListener(ISimProcessListener l)
- Specified by:
removeProcessListenerin interfaceISimProcess
-
preempt
public void preempt()
- Specified by:
preemptin interfaceISimProcess
-
-