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:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetId()longgetRawId()booleanReturns whether this process has finished its execution.abstract voidvoidPassivates this process.voidpassivate(double delay) Puts the process asleep and resumes after waitingdelaysimulated time units.voidpreempt()voidvoidscheduleAt(double d) Resumes the process after waitingdelaysimulated time units.Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, rescheduleMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getModel, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
isScheduled, reschedule
-
Constructor Details
-
AbstractSimProcessDelegator
-
-
Method Details
-
getRawId
public long getRawId() -
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
- Specified by:
addProcessListenerin interfaceISimProcess
-
removeProcessListener
- Specified by:
removeProcessListenerin interfaceISimProcess
-
preempt
public void preempt()- Specified by:
preemptin interfaceISimProcess
-