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
public abstract class SimuComContext extends Context
Context of each thread in SimuCom simulation. This class contains the functionality previously contained inContext
which only works for SimuCom simulations.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.simucomframework.variables.StackContext
stack
-
-
Constructor Summary
Constructors Constructor Description SimuComContext(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
Method Summary
All Methods Instance Methods Abstract 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.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
initialiseAssemblyContextLookup()
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 container-
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
-
SimuComContext
public SimuComContext(SimuComModel myModel, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
-
Method Detail
-
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
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
-
-