public abstract class Context extends StackContext
stack
Constructor and Description |
---|
Context(SimuComModel myModel)
Initialise a new context for the given simulation model
|
Modifier and Type | Method and Description |
---|---|
SimulatedLinkingResourceContainer |
findLinkingResource(java.lang.String linkingResourceContainerID)
Lookup method to find the linking resource container that belongs to the given container id.
|
AbstractSimulatedResourceContainer |
findResource(java.lang.String assemblyContextID)
Lookup method to find the resource container in which the given components assembly context
is deployed
|
SimuComModel |
getModel() |
de.uka.ipd.sdq.scheduler.IPassiveResource |
getPassiveRessourceInContext(java.lang.String resourceURI,
org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext,
AbstractSimulatedResourceContainer resourceContainer,
long capacity) |
long |
getSessionId() |
SimuComSimProcess |
getThread() |
protected abstract void |
initialiseAssemblyContextLookup()
Template method to be filled in by the generator.
|
protected void |
linkAssemblyContextAndResourceContainer(java.lang.String assemblyContextID,
java.lang.String resourceContainerID)
Create a deployment relationship between the given assembly context and the given resource
container
|
void |
setSimProcess(SimuComSimProcess process) |
evaluate, evaluate, evaluate, evaluateInner, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, evaluateStatic, getEvaluationMode, getStack, setEvaluationMode
public Context(SimuComModel myModel)
myModel
- The simulation model used in this contextpublic long getSessionId()
public AbstractSimulatedResourceContainer findResource(java.lang.String assemblyContextID)
assemblyContextID
- The ID of the assembly context for which its deployment is queriedpublic SimulatedLinkingResourceContainer findLinkingResource(java.lang.String linkingResourceContainerID)
linkingResourceContainerID
- the container idprotected void linkAssemblyContextAndResourceContainer(java.lang.String assemblyContextID, java.lang.String resourceContainerID)
assemblyContextID
- ID of the assembly context to allocateresourceContainerID
- ID of the resource container on which the assembly context is allocatedpublic de.uka.ipd.sdq.scheduler.IPassiveResource getPassiveRessourceInContext(java.lang.String resourceURI, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, AbstractSimulatedResourceContainer resourceContainer, long capacity)
protected abstract void initialiseAssemblyContextLookup()
public SimuComSimProcess getThread()
public void setSimProcess(SimuComSimProcess process)
public SimuComModel getModel()