Class TrueConditionService

  • All Implemented Interfaces:
    ConditionService<True>

    public class TrueConditionService
    extends java.lang.Object
    implements ConditionService<True>
    A trivial condition service for the True condition.
    Author:
    Christian W. Damus
    • Constructor Detail

      • TrueConditionService

        public TrueConditionService()
        Initializes me.
    • Method Detail

      • evaluate

        public boolean evaluate​(True condition,
                                org.eclipse.emf.ecore.EObject domainModel)
        Description copied from interface: ConditionService
        Evaluates the given condition.
        Specified by:
        evaluate in interface ConditionService<True>
        Parameters:
        condition - The Condition to evaluate
        domainModel - The root domain object of this condition.
        Returns:
        true, if the condition matches, false otherwise
      • evaluateChangedValues

        public boolean evaluateChangedValues​(True condition,
                                             org.eclipse.emf.ecore.EObject domainModel,
                                             java.util.Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,​java.lang.Object> possibleNewValues)
        Description copied from interface: ConditionService
        Evaluates the given condition.
        Specified by:
        evaluateChangedValues in interface ConditionService<True>
        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
      • getConditionSettings

        public java.util.Set<UniqueSetting> getConditionSettings​(True condition,
                                                                 org.eclipse.emf.ecore.EObject domainModel)
        Description copied from interface: ConditionService
        The set of UniqueSetting that are relevant for the provided condition and domain model.
        Specified by:
        getConditionSettings in interface ConditionService<True>
        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.