Class PreInterpretationBehaviorManager
- java.lang.Object
-
- org.palladiosimulator.simulizar.runtimestate.PreInterpretationBehaviorManager
-
- All Implemented Interfaces:
Extension
,RuntimeStateEntityManager
public class PreInterpretationBehaviorManager extends Object implements RuntimeStateEntityManager
Manager to exchange behavior for the interpretation of certain simulation entities between different interpreters. For the id of every simulated entity one container is mapped to store PreInterpretationBehaviors.
-
-
Constructor Summary
Constructors Constructor Description PreInterpretationBehaviorManager(InterpreterResultMerger merger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
PreInterpretationBehaviorContainer
getContainerForEntity(String id)
Returns a container for the simulated entity with the given id.PreInterpretationBehaviorContainer
getContainerForEntity(EClass object)
Returns a container for the simulated entity with the given id.boolean
hasContainerAlreadyBeenRegisteredForEntity(String id)
Checks if a container has already been registered for this entitys id.boolean
hasContainerAlreadyBeenRegisteredForEntity(EClass object)
Checks if a container has already been registered for this type of EObject.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.palladiosimulator.simulizar.runtimestate.RuntimeStateEntityManager
initialize
-
-
-
-
Constructor Detail
-
PreInterpretationBehaviorManager
@Inject public PreInterpretationBehaviorManager(InterpreterResultMerger merger)
-
-
Method Detail
-
getContainerForEntity
public PreInterpretationBehaviorContainer getContainerForEntity(String id)
Returns a container for the simulated entity with the given id. Creates a new Container if there is not one already. Behaviors can then be added into the container to be executed later in the interpreter.- Returns:
- the container for the simulated entity with the given id
-
getContainerForEntity
public PreInterpretationBehaviorContainer getContainerForEntity(EClass object)
Returns a container for the simulated entity with the given id. Creates a new Container if there is not one already. Behaviors can then be added into the container to be executed later in the interpreter.- Parameters:
object
- the type of EObject for which the lookup should be done- Returns:
- the container for the simulated entity with the given id
-
hasContainerAlreadyBeenRegisteredForEntity
public boolean hasContainerAlreadyBeenRegisteredForEntity(String id)
Checks if a container has already been registered for this entitys id.- Parameters:
id
- the ID of the simulated entity- Returns:
- true if a container exists for the specified entity
-
hasContainerAlreadyBeenRegisteredForEntity
public boolean hasContainerAlreadyBeenRegisteredForEntity(EClass object)
Checks if a container has already been registered for this type of EObject.- Parameters:
object
- the type of EObject for which the lookup should be done- Returns:
- true if a container exists for the specified entity
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceRuntimeStateEntityManager
-
-