Class ActionRuntimeState
java.lang.Object
org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState
- All Implemented Interfaces:
IRuntimeStateAccessor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Implementation of the well-known Builder Pattern for a facilitated construction ofTransientEffectInterpreter
s with different configurations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInterpreterBuilder
(RoleSet roleSet, AdaptationBehaviorRepository repository) Gets aActionRuntimeState.TransientEffectInterpreterBuilder
which is suitable to construct anTransientEffectInterpreter
with the given arguments.void
setRuntimeStateModel
(SimuLizarRuntimeState passedState) Injects theSimuLizarRuntimeState
which is then used by#TransientEffectInterpreterBuilder
instances to equip themselves for interpreter creation.
-
Constructor Details
-
ActionRuntimeState
public ActionRuntimeState()
-
-
Method Details
-
getInterpreterBuilder
public static ActionRuntimeState.TransientEffectInterpreterBuilder getInterpreterBuilder(RoleSet roleSet, AdaptationBehaviorRepository repository) Gets aActionRuntimeState.TransientEffectInterpreterBuilder
which is suitable to construct anTransientEffectInterpreter
with the given arguments.- Parameters:
roleSet
- TheRoleSet
to be used by the interpreter.repository
- TheAdaptationBehaviorRepository
which contains all available adaptations to be executed.- Returns:
- An
ActionRuntimeState.TransientEffectInterpreterBuilder
instance to construct the interpreter. - Throws:
NullPointerException
- In case either argument isnull
.
-
setRuntimeStateModel
Injects theSimuLizarRuntimeState
which is then used by#TransientEffectInterpreterBuilder
instances to equip themselves for interpreter creation.- Specified by:
setRuntimeStateModel
in interfaceIRuntimeStateAccessor
- Parameters:
The
-SimuLizarRuntimeState
to inject.- Throws:
NullPointerException
- In case the given instance isnull
.
-