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 IAssemblyAllocationLookup<AbstractSimulatedResourceContainer>
getAssemblyAllocationLookup()
The lookup allows to find the suitable simulation entity of the ResourceContainer to which an AssemblyContext is deployed to.Context
getParentContext()
-
Methods inherited from class de.uka.ipd.sdq.simucomframework.Context
findLinkingResource, findResource, getModel, getResourceTableManager, getSessionId, getSimulatedResourceContainerAccess, getThread, 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
-
getParentContext
public Context getParentContext()
-
getAssemblyAllocationLookup
public IAssemblyAllocationLookup<AbstractSimulatedResourceContainer> getAssemblyAllocationLookup()
Description copied from class:Context
The lookup allows to find the suitable simulation entity of the ResourceContainer to which an AssemblyContext is deployed to. Subclasses need to provide the concrete implementation of the lookup mechanism.- Specified by:
getAssemblyAllocationLookup
in classContext
- Returns:
- the AssemblyContext allocation lookup
-
-