Class ActionRuntimeState.TransientEffectInterpreterBuilder
java.lang.Object
org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.TransientEffectInterpreterBuilder
- Enclosing class:
- ActionRuntimeState
Implementation of the well-known Builder Pattern for a facilitated construction of
TransientEffectInterpreter
s with different configurations.-
Method Summary
Modifier and TypeMethodDescriptionaddControllerCallVariableUsages
(ControllerCallInputVariableUsageCollection controllerCallVariabelUsages) Equips the current builder instance with a collection of input variable usages that shall be used by the interpreter to be constructed.addExecutionContext
(ExecutionContext executionContext) build
(de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Constructs an appropriateTransientEffectInterpreter
by using the current builder configuration.isAsync()
Equips the current builder instance to create an interpreter for asynchronous interpretation.isAsync
(ExecutionContext context)
-
Method Details
-
isAsync
Equips the current builder instance to create an interpreter for asynchronous interpretation.- Returns:
- The current (yet modified) instance.
-
isAsync
-
addControllerCallVariableUsages
public ActionRuntimeState.TransientEffectInterpreterBuilder addControllerCallVariableUsages(ControllerCallInputVariableUsageCollection controllerCallVariabelUsages) Equips the current builder instance with a collection of input variable usages that shall be used by the interpreter to be constructed.- Parameters:
controllerCallVariabelUsages
- TheControllerCallInputVariableUsageCollection
to be used by the interpreter for executingControllerCall
s.- Returns:
- The current (yet modified) instance.
- Throws:
NullPointerException
- In caseControllerCallInputVariableUsages == null
.
-
addExecutionContext
public ActionRuntimeState.TransientEffectInterpreterBuilder addExecutionContext(ExecutionContext executionContext) -
build
public TransientEffectInterpreter build(de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Constructs an appropriateTransientEffectInterpreter
by using the current builder configuration.- Returns:
- A newly created
TransientEffectInterpreter
instance.
-