Class ForkContext
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.variables.StackContext
-
- de.uka.ipd.sdq.simucomframework.Context
-
- de.uka.ipd.sdq.simucomframework.fork.ForkContext
-
- All Implemented Interfaces:
Serializable
public class ForkContext extends Context
Context for forked behaviours- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext
stack
-
-
Constructor Summary
Constructors Constructor Description ForkContext(Context parentContext, SimuComSimProcess parent)
Constructor of the parallel process
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSimulatedResourceContainer
findResource(String assemblyContextID)
Lookup method to find the resource container in which the given components assembly context is deployedContext
getParentContext()
protected void
initialiseAssemblyContextLookup()
Template method to be filled in by the generator.-
Methods inherited from class de.uka.ipd.sdq.simucomframework.Context
findLinkingResource, getModel, getPassiveRessourceInContext, getSessionId, getThread, linkAssemblyContextAndResourceContainer, setSimProcess
-
Methods inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext
evaluate, evaluate, evaluate, evaluateInner, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, getEvaluationMode, getStack, setEvaluationMode
-
-
-
-
Constructor Detail
-
ForkContext
public ForkContext(Context parentContext, SimuComSimProcess parent)
Constructor of the parallel process- Parameters:
parentContext
- The current context of the parent thread. Used to evaluate variables in the parallel processparent
- The parent process
-
-
Method Detail
-
findResource
public AbstractSimulatedResourceContainer findResource(String assemblyContextID)
Description copied from class:Context
Lookup method to find the resource container in which the given components assembly context is deployed- Overrides:
findResource
in classContext
- Parameters:
assemblyContextID
- The ID of the assembly context for which its deployment is queried- Returns:
- The resource container in which the given assembly context is deployed
-
getParentContext
public Context getParentContext()
-
initialiseAssemblyContextLookup
protected void initialiseAssemblyContextLookup()
Description copied from class:Context
Template method to be filled in by the generator. Calles linkAssemblyContextAndResourceContainer to create the deployment specified in the allocation model- Specified by:
initialiseAssemblyContextLookup
in classContext
-
-