Interface IReconfigurationEngine

All Superinterfaces:
Extension
All Known Implementing Classes:
AbstractReconfigurator, HenshinReconfigurator, QVTOReconfigurator, SDReconfigurator

public interface IReconfigurationEngine extends Extension
Interface for a component that is able to reconfigure the PCM model@runtime.
  • Field Details

    • RECONFIGURATION_CHECK_SUCCEEDED

      static final int RECONFIGURATION_CHECK_SUCCEEDED
      See Also:
    • RECONFIGURATION_CHECK_FAILED

      static final int RECONFIGURATION_CHECK_FAILED
      See Also:
    • RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE

      static final int RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE
      See Also:
    • RECONFIGURATION_EXECUTION_SUCCEEDED

      static final int RECONFIGURATION_EXECUTION_SUCCEEDED
      See Also:
    • RECONFIGURATION_EXECUTION_FAILED

      static final int RECONFIGURATION_EXECUTION_FAILED
      See Also:
    • RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE

      static final int RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE
      See Also:
  • Method Details

    • runCheck

      boolean runCheck(EList<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
      Trigger a condition check of the model@runtime. Engines should check whether they should reconfigure.
      Type Parameters:
      T -
      Parameters:
      monitoredElement - PCM model element for which a new sensor measurement arrived.
      Returns:
      true if the check was positive/matched, false if it was negative/did not match
    • runExecute

      boolean runExecute(EList<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
      Trigger a reconfiguration of the model@runtime. This method should only be called if the prior check was positive, i.e., engines should only do the reconfiguration if the prior check was positive.
      Parameters:
      monitoredElement - PCM model element for which a new sensor measurement arrived.
      Returns:
      true if the reconfiguration was executed, false if it was not executed or did not succeed.
    • setConfiguration

      @Inject default void setConfiguration(SimuLizarWorkflowConfiguration configuration)
    • setPCMPartitionManager

      @Inject default void setPCMPartitionManager(PCMPartitionManager pcmPartitionManager)