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 ofTransientEffectInterpreter
s with different configurations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ActionRuntimeState.TransientEffectInterpreterBuilder
addExecutionContext(ExecutionContext executionContext)
TransientEffectInterpreter
build()
Constructs an appropriateTransientEffectInterpreter
by using the current builder configuration.ActionRuntimeState.TransientEffectInterpreterBuilder
isAsync()
Equips the current builder instance to create an interpreter for asynchronous interpretation.ActionRuntimeState.TransientEffectInterpreterBuilder
isAsync(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
- 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()
Constructs an appropriateTransientEffectInterpreter
by using the current builder configuration.- Returns:
- A newly created
TransientEffectInterpreter
instance.
-
-