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 TypeMethodDescriptionevaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment) Evaluates this proposition -- and in the case ofPropositions containing children, those children as well -- and returns the boolean result;Returns theListof childPropositions that belong to this object.booleanIndicates whether thisPropositioncan have children.
-
Method Details
-
evaluate
Evaluates this proposition -- and in the case ofPropositions containing children, those children as well -- and returns the boolean result;- Parameters:
environment- theExecutionEnvironmentthat thisPropositionis running in- Returns:
- the boolean result of evaluation
-
getChildren
List<Proposition> getChildren()Returns theListof childPropositions that belong to this object. If there are no children (e.g. for simplePropositiontypes), this must return an emptyList.- Returns:
- a
Listcontaining any childPropositions that belong to this object. Must never return null.
-
isCompound
boolean isCompound()Indicates whether thisPropositioncan have children.- Returns:
- true if this
Propositioncan contain childPropositions.
-