public abstract class Context extends StackContext
Constructor and Description |
---|
Context(SimuComModel myModel)
Initialise a new context for the given simulation model
|
Modifier and Type | Method and Description |
---|---|
SimulatedLinkingResourceContainer |
findLinkingResource(String linkingResourceContainerID)
Lookup method to find the linking resource container that belongs to the given container id.
|
AbstractSimulatedResourceContainer |
findResource(String assemblyContextID)
Lookup method to find the resource container in which the given components assembly context
is deployed
|
SimuComModel |
getModel() |
IPassiveResource |
getPassiveRessourceInContext(String resourceURI,
org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext,
AbstractSimulatedResourceContainer resourceContainer,
long capacity) |
long |
getSessionId() |
SimuComSimProcess |
getThread() |
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(String assemblyContextID)
assemblyContextID
- The ID of the assembly context for which its deployment is queriedpublic SimulatedLinkingResourceContainer findLinkingResource(String linkingResourceContainerID)
linkingResourceContainerID
- the container idpublic IPassiveResource getPassiveRessourceInContext(String resourceURI, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, AbstractSimulatedResourceContainer resourceContainer, long capacity)
public SimuComSimProcess getThread()
public void setSimProcess(SimuComSimProcess process)
public SimuComModel getModel()