Package de.uka.ipd.sdq.simucomframework
Class Context
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.StackContext
de.uka.ipd.sdq.simucomframework.Context
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SimuComContext
Context of each simulation thread. This context inherits a stack context and enriches it with
information on the simulated execution environment.
- See Also:
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext
stack
-
Constructor Summary
ConstructorDescriptionContext
(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Initialise a new context for the given simulation model -
Method Summary
Modifier and TypeMethodDescriptionfindLinkingResource
(String linkingResourceContainerID) Lookup method to find the linking resource container that belongs to the given container id.findResource
(String assemblyContextID) Lookup method to find the resource container in which the given components assembly context is deployedThe lookup allows to find the suitable simulation entity of the ResourceContainer to which an AssemblyContext is deployed to.getModel()
de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager
long
ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,
AbstractSimulatedResourceContainer> Provides access to simulation entities of resource containers based on their model entities.void
setSimProcess
(SimuComSimProcess process) 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 Details
-
Context
public Context(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Initialise a new context for the given simulation model- Parameters:
myModel
- The simulation model used in this context
-
-
Method Details
-
getResourceTableManager
public de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager getResourceTableManager() -
getSessionId
public long getSessionId() -
findResource
Lookup method to find the resource container in which the given components assembly context is deployed- 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
-
findLinkingResource
Lookup method to find the linking resource container that belongs to the given container id.- Parameters:
linkingResourceContainerID
- the container id- Returns:
- the linking resource container
-
getAssemblyAllocationLookup
public abstract IAssemblyAllocationLookup<AbstractSimulatedResourceContainer> getAssemblyAllocationLookup()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.- Returns:
- the AssemblyContext allocation lookup
-
getSimulatedResourceContainerAccess
public ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer,AbstractSimulatedResourceContainer> getSimulatedResourceContainerAccess()Provides access to simulation entities of resource containers based on their model entities.- Returns:
- the access facade to simulated resource containers.
-
getThread
-
setSimProcess
-
getModel
-