Class ActionRuntimeState
- java.lang.Object
-
- org.palladiosimulator.simulizar.action.interpreter.ActionRuntimeState
-
- All Implemented Interfaces:
IRuntimeStateAccessor
public class ActionRuntimeState extends Object implements IRuntimeStateAccessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActionRuntimeState.TransientEffectInterpreterBuilderImplementation of the well-known Builder Pattern for a facilitated construction ofTransientEffectInterpreters with different configurations.
-
Constructor Summary
Constructors Constructor Description ActionRuntimeState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActionRuntimeState.TransientEffectInterpreterBuildergetInterpreterBuilder(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.
-
-
-
Method Detail
-
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
public void setRuntimeStateModel(SimuLizarRuntimeState passedState)
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.
-
-