Class ForkedBehaviourProcess
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
-
- de.uka.ipd.sdq.simucomframework.SimuComSimProcess
-
- de.uka.ipd.sdq.simucomframework.fork.ForkedBehaviourProcess
-
- All Implemented Interfaces:
de.uka.ipd.sdq.scheduler.ISchedulableProcess
,de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
,de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess
,de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
public abstract class ForkedBehaviourProcess extends SimuComSimProcess
Base class for ForkBehaviours. Generator creates a specialisation of this and uses it to execute actions in parallel
-
-
Field Summary
Fields Modifier and Type Field Description protected String
assemblyContextID
protected Context
myContext
-
Fields inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess
currentSessionId
-
-
Constructor Summary
Constructors Constructor Description ForkedBehaviourProcess(Context context, String assemblyContextID, boolean isAsync, int priority, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
ForkedBehaviourProcess(Context context, String assemblyContextID, boolean isAsync, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Context
createForkContext(Context context)
Factory method for the fork context used in the forked behaviourprotected abstract void
executeBehaviour()
Template method filled by the generate with the parallel behaviour specified in the PCM's fork actionprotected void
internalLifeCycle()
boolean
isAsync()
boolean
isTerminated()
-
Methods inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess
activate, addProcessToSimStatus, addTerminatedObserver, fireTerminated, getCurrentSessionId, getModel, getPriority, getRequestContext, getRootProcess, getSimProcessStatus, hold, isFinished, lifeCycle, notifyResuming, notifySuspending, notifyTerminated, removeProcessFromSimStatus, removeTerminatedObserver, setPriority, timeout, updateNewSessionID
-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
addProcessListener, getId, getRawId, passivate, passivate, preempt, removeProcessListener, scheduleAt
-
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, reschedule
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
createForkContext
protected Context createForkContext(Context context)
Factory method for the fork context used in the forked behaviour- Parameters:
context
-- Returns:
-
internalLifeCycle
protected void internalLifeCycle()
- Specified by:
internalLifeCycle
in classSimuComSimProcess
-
executeBehaviour
protected abstract void executeBehaviour()
Template method filled by the generate with the parallel behaviour specified in the PCM's fork action
-
isAsync
public boolean isAsync()
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfacede.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess
- Overrides:
isTerminated
in classde.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
-
-