Interface IReconfigurationEngine

    • Field Detail

      • RECONFIGURATION_CHECK_SUCCEEDED

        static final int RECONFIGURATION_CHECK_SUCCEEDED
        See Also:
        Constant Field Values
      • RECONFIGURATION_CHECK_FAILED

        static final int RECONFIGURATION_CHECK_FAILED
        See Also:
        Constant Field Values
      • RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE

        static final int RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE
        See Also:
        Constant Field Values
      • RECONFIGURATION_EXECUTION_SUCCEEDED

        static final int RECONFIGURATION_EXECUTION_SUCCEEDED
        See Also:
        Constant Field Values
      • RECONFIGURATION_EXECUTION_FAILED

        static final int RECONFIGURATION_EXECUTION_FAILED
        See Also:
        Constant Field Values
      • RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE

        static final int RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE
        See Also:
        Constant Field Values
    • Method Detail

      • runCheck

        boolean runCheck​(EList<? extends ModelTransformation<? extends Object>> checks,
                         EObject monitoredElement)
        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)
        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.
      • setModelAccess

        void setModelAccess​(IModelAccess modelAccess)