Interface ISimProcess
-
- All Superinterfaces:
IEntity
- All Known Implementing Classes:
AbstractSimProcessDelegator
,DesmoJSimProcess
,SimulatedProcess
,SSJSimProcess
public interface ISimProcess extends IEntity
A simulated process, which executes a sequence of actions as specified by thelifeCycle
method. in this way, this class supports the so-called process-interaction simulation modelling.By contrast to
AbstractSimEventDelegator
s, simulated time may pass while executing the process lifecycle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProcessListener(ISimProcessListener l)
boolean
isTerminated()
Returns whether this process has finished its execution.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 delay)
Resumes the process after waitingdelay
simulated time units.-
Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
isScheduled, reschedule
-
-
-
-
Method Detail
-
passivate
void passivate()
Passivates this process. This will suspend the simulation of the process until it is resumed again using thescheduleAt
method.
-
scheduleAt
void scheduleAt(double delay)
Resumes the process after waitingdelay
simulated time units.- Parameters:
delay
- the period of simulated time to wait before this process is activated again.
-
passivate
void passivate(double delay)
Puts the process asleep and resumes after waitingdelay
simulated time units.- Parameters:
delay
- the period of simulated time to wait before this process is activated again.
-
isTerminated
boolean isTerminated()
Returns whether this process has finished its execution.
-
preempt
void preempt()
-
addProcessListener
void addProcessListener(ISimProcessListener l)
-
removeProcessListener
void removeProcessListener(ISimProcessListener l)
-
-