Class ActionRuntimeState.TransientEffectInterpreterBuilder
- java.lang.Object
-
- org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState.TransientEffectInterpreterBuilder
-
- Enclosing class:
- ActionRuntimeState
public static class ActionRuntimeState.TransientEffectInterpreterBuilder extends Object
Implementation of the well-known Builder Pattern for a facilitated construction ofTransientEffectInterpreters with different configurations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionRuntimeState.TransientEffectInterpreterBuilderaddControllerCallVariableUsages(ControllerCallInputVariableUsageCollection controllerCallVariabelUsages)Equips the current builder instance with a collection of input variable usages that shall be used by the interpreter to be constructed.ActionRuntimeState.TransientEffectInterpreterBuilderaddExecutionContext(ExecutionContext executionContext)TransientEffectInterpreterbuild(de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)Constructs an appropriateTransientEffectInterpreterby using the current builder configuration.ActionRuntimeState.TransientEffectInterpreterBuilderisAsync()Equips the current builder instance to create an interpreter for asynchronous interpretation.ActionRuntimeState.TransientEffectInterpreterBuilderisAsync(ExecutionContext context)
-
-
-
Method Detail
-
isAsync
public ActionRuntimeState.TransientEffectInterpreterBuilder isAsync()
Equips the current builder instance to create an interpreter for asynchronous interpretation.- Returns:
- The current (yet modified) instance.
-
isAsync
public ActionRuntimeState.TransientEffectInterpreterBuilder isAsync(ExecutionContext context)
-
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- TheControllerCallInputVariableUsageCollectionto be used by the interpreter for executingControllerCalls.- 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 appropriateTransientEffectInterpreterby using the current builder configuration.- Returns:
- A newly created
TransientEffectInterpreterinstance.
-
-