Interface ConditionService<T extends Condition>

    • Method Detail

      • getConditionType

        org.eclipse.emf.ecore.EClass getConditionType()
        The EClass this ConditionService is implemented for.
        Returns:
        The EClass of the Condition
      • getConditionSettings

        java.util.Set<UniqueSetting> getConditionSettings​(T condition,
                                                          org.eclipse.emf.ecore.EObject domainModel)
        The set of UniqueSetting that are relevant for the provided condition and domain model.
        Parameters:
        condition - The Condition to get the UniqueSettings for
        domainModel - The EObject to use for retrieving
        Returns:
        The Set of UniqueSettings. This Set must not be null.
      • evaluate

        boolean evaluate​(T condition,
                         org.eclipse.emf.ecore.EObject domainModel)
        Evaluates the given condition.
        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​(T condition,
                                      org.eclipse.emf.ecore.EObject domainModel,
                                      java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
        Evaluates the given condition.
        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​(T condition)
        The Set of VDomainModelReference that are relevant for the condition.
        Parameters:
        condition - The Condition to retrieve the VDMRs for
        Returns:
        The Set of VDomainModelReferences. This Set must not be null.