Class PreInterpretationBehaviorManager
java.lang.Object
org.palladiosimulator.simulizar.runtimestate.PreInterpretationBehaviorManager
- All Implemented Interfaces:
Extension
,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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Returns a container for the simulated entity with the given id.getContainerForEntity
(EClass object) Returns a container for the simulated entity with the given id.boolean
Checks if a container has already been registered for this entitys id.boolean
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 Details
-
PreInterpretationBehaviorManager
-
-
Method Details
-
getContainerForEntity
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
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
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
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
-