Class ActionRuntimeState
java.lang.Object
org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState
- All Implemented Interfaces:
IRuntimeStateAccessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of the well-known Builder Pattern for a facilitated construction ofTransientEffectInterpreters with different configurations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInterpreterBuilder(RoleSet roleSet, AdaptationBehaviorRepository repository) Gets aActionRuntimeState.TransientEffectInterpreterBuilderwhich is suitable to construct anTransientEffectInterpreterwith the given arguments.voidsetRuntimeStateModel(SimuLizarRuntimeState passedState) Injects theSimuLizarRuntimeStatewhich is then used by#TransientEffectInterpreterBuilderinstances 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.TransientEffectInterpreterBuilderwhich is suitable to construct anTransientEffectInterpreterwith the given arguments.- Parameters:
roleSet- TheRoleSetto be used by the interpreter.repository- TheAdaptationBehaviorRepositorywhich contains all available adaptations to be executed.- Returns:
- An
ActionRuntimeState.TransientEffectInterpreterBuilderinstance to construct the interpreter. - Throws:
NullPointerException- In case either argument isnull.
-
setRuntimeStateModel
Injects theSimuLizarRuntimeStatewhich is then used by#TransientEffectInterpreterBuilderinstances to equip themselves for interpreter creation.- Specified by:
setRuntimeStateModelin interfaceIRuntimeStateAccessor- Parameters:
The-SimuLizarRuntimeStateto inject.- Throws:
NullPointerException- In case the given instance isnull.
-