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 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 waitingdelay
simulated time units.void
preempt()
void
removeProcessListener(ISimProcessListener l)
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 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:
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
public void addProcessListener(ISimProcessListener l)
- Specified by:
addProcessListener
in interfaceISimProcess
-
removeProcessListener
public void removeProcessListener(ISimProcessListener l)
- Specified by:
removeProcessListener
in interfaceISimProcess
-
preempt
public void preempt()
- Specified by:
preempt
in interfaceISimProcess
-
-