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 class
ActionRuntimeState.TransientEffectInterpreterBuilder
Implementation of the well-known Builder Pattern for a facilitated construction ofTransientEffectInterpreter
s 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.TransientEffectInterpreterBuilder
getInterpreterBuilder(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.
-
-
-
Method Detail
-
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
public void setRuntimeStateModel(SimuLizarRuntimeState passedState)
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
.
-
-