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 Details

    • PreInterpretationBehaviorManager

      @Inject public PreInterpretationBehaviorManager(InterpreterResultMerger merger)
  • Method Details

    • 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 interface RuntimeStateEntityManager