org.kuali.rice.krms.framework.engine
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:
PropositionResult

Method Summary
 PropositionResult evaluate(ExecutionEnvironment environment)
          Evaluates this proposition -- and in the case of Propositions containing children, those children as well -- and returns the boolean result;
 List<Proposition> getChildren()
          Returns the List of child Propositions that belong to this object.
 boolean isCompound()
          Indicates whether this Proposition can have children.
 

Method Detail

evaluate

PropositionResult evaluate(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.


Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.