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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getId()
long
getRawId()
boolean
Returns whether this process has finished its execution.abstract void
void
Passivates this process.void
passivate
(double delay) Puts the process asleep and resumes after waitingdelay
simulated time units.void
preempt()
void
void
scheduleAt
(double d) Resumes the process after waitingdelay
simulated 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 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:
isTerminated
in interfaceISimProcess
-
passivate
public void passivate()Passivates this process. This will suspend the simulation of the process until it is resumed again using thescheduleAt
method.- Specified by:
passivate
in interfaceISimProcess
-
scheduleAt
public void scheduleAt(double d) Resumes the process after waitingdelay
simulated time units.- Specified by:
scheduleAt
in 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 waitingdelay
simulated time units.- Specified by:
passivate
in interfaceISimProcess
- Parameters:
delay
- the period of simulated time to wait before this process is activated again.
-
addProcessListener
- Specified by:
addProcessListener
in interfaceISimProcess
-
removeProcessListener
- Specified by:
removeProcessListener
in interfaceISimProcess
-
preempt
public void preempt()- Specified by:
preempt
in interfaceISimProcess
-