Interface Proposition

All Known Implementing Classes:
CollectionOfComparablesTermBasedProposition, ComparableTermBasedProposition, CompoundProposition, ExpressionBasedProposition, StringTermBasedProposition

public interface Proposition
Interface for logical propositions that may be executed in the Engine.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
    Evaluates this proposition -- and in the case of Propositions containing children, those children as well -- and returns the boolean result;
    Returns the List of child Propositions that belong to this object.
    boolean
    Indicates whether this Proposition can have children.
  • Method Details

    • evaluate

      PropositionResult evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
      Evaluates this proposition -- and in the case of Propositions containing children, those children as well -- and returns the boolean result;
      Parameters:
      environment - the ExecutionEnvironment that this Proposition is running in
      Returns:
      the boolean result of evaluation
    • getChildren

      List<Proposition> getChildren()
      Returns the List of child Propositions that belong to this object. If there are no children (e.g. for simple Proposition types), this must return an empty List.
      Returns:
      a List containing any child Propositions that belong to this object. Must never return null.
    • isCompound

      boolean isCompound()
      Indicates whether this Proposition can have children.
      Returns:
      true if this Proposition can contain child Propositions.