Package de.uka.ipd.sdq.simucomframework
Class SimuComContext
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.StackContext
de.uka.ipd.sdq.simucomframework.Context
de.uka.ipd.sdq.simucomframework.SimuComContext
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ForkContext
Context of each thread in SimuCom simulation.
This class contains the functionality previously contained in
Context
which only works for SimuCom simulations.- See Also:
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext
stack
-
Constructor Summary
ConstructorDescriptionSimuComContext
(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) -
Method Summary
Modifier and TypeMethodDescriptionThe lookup allows to find the suitable simulation entity of the ResourceContainer to which an AssemblyContext is deployed to.de.uka.ipd.sdq.scheduler.IPassiveResource
getPassiveRessourceInContext
(String resourceURI, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, AbstractSimulatedResourceContainer resourceContainer, long capacity) This method is used by SimuCom simulation code to look up simulated instances of passive resources based on the assembly contextprotected abstract void
Template method to be filled in by the generator.protected void
linkAssemblyContextAndResourceContainer
(String assemblyContextID, String resourceContainerID) Create a deployment relationship between the given assembly context and the given resource containerMethods 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 Details
-
SimuComContext
public SimuComContext(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
-
Method Details
-
linkAssemblyContextAndResourceContainer
protected void linkAssemblyContextAndResourceContainer(String assemblyContextID, String resourceContainerID) Create a deployment relationship between the given assembly context and the given resource container- Parameters:
assemblyContextID
- ID of the assembly context to allocateresourceContainerID
- ID of the resource container on which the assembly context is allocated
-
getPassiveRessourceInContext
public de.uka.ipd.sdq.scheduler.IPassiveResource getPassiveRessourceInContext(String resourceURI, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, AbstractSimulatedResourceContainer resourceContainer, long capacity) This method is used by SimuCom simulation code to look up simulated instances of passive resources based on the assembly context -
initialiseAssemblyContextLookup
protected abstract void initialiseAssemblyContextLookup()Template method to be filled in by the generator. Calles linkAssemblyContextAndResourceContainer to create the deployment specified in the allocation model -
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
-