Interface ConditionServiceManager

  • All Known Implementing Classes:
    ConditionServiceManagerImpl

    public interface ConditionServiceManager
    The ConditionServiceManager is responsible to delegate evaluation calls about conditions to the corresponding ConditionServices.
    Author:
    Eugen Neufeld
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean evaluate​(Condition condition, org.eclipse.emf.ecore.EObject domainModel)
      Evaluates the given condition using the provided domain model.
      boolean evaluateChangedValues​(Condition condition, org.eclipse.emf.ecore.EObject domainModel, java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
      Evaluates whether the given condition using the provided domain model will change if a specific setting will be set to a specific value.
      java.util.Set<UniqueSetting> getConditionSettings​(Condition condition, org.eclipse.emf.ecore.EObject domainModel)
      Returns the conditionSetting for a condition and the corresponding domain model.
      java.util.Set<VDomainModelReference> getDomainModelReferences​(Condition condition)
      The Set of DomainModelReferences this condition needs to evaluate.
    • Method Detail

      • getConditionSettings

        java.util.Set<UniqueSetting> getConditionSettings​(Condition condition,
                                                          org.eclipse.emf.ecore.EObject domainModel)
        Returns the conditionSetting for a condition and the corresponding domain model.
        Parameters:
        condition - The condition to get the settings for
        domainModel - The domain model this condition applies to
        Returns:
        The Set of Settings. This set cannot be null.
      • evaluate

        boolean evaluate​(Condition condition,
                         org.eclipse.emf.ecore.EObject domainModel)
        Evaluates the given condition using the provided domain model.
        Parameters:
        condition - The condition to evaluate.
        domainModel - The root domain object of this condition.
        Returns:
        true, if the condition matches, false otherwise
      • evaluateChangedValues

        boolean evaluateChangedValues​(Condition condition,
                                      org.eclipse.emf.ecore.EObject domainModel,
                                      java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
        Evaluates whether the given condition using the provided domain model will change if a specific setting will be set to a specific value.
        Parameters:
        condition - The condition to evaluate.
        domainModel - The root domain object of this condition.
        possibleNewValues - the new value that should be compared against the expected value of the condition
        Returns:
        true, if the condition matches, false otherwise
      • getDomainModelReferences

        java.util.Set<VDomainModelReference> getDomainModelReferences​(Condition condition)
        The Set of DomainModelReferences this condition needs to evaluate.
        Parameters:
        condition - The condition to retrieve the VDomainModelReferences for
        Returns:
        The Set of DomainModelReferences. The set cannot be null.