Class CompoundProposition
java.lang.Object
org.kuali.rice.krms.framework.engine.CompoundProposition
- All Implemented Interfaces:
Proposition
An implementation of
Proposition which holds other Propositions and a LogicalOperator.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundProposition(LogicalOperator logicalOperator, List<Proposition> propositions) Create a CompoundProposition with the given values -
Method Summary
Modifier and TypeMethodDescriptionevaluate(ExecutionEnvironment environment) Evaluates this proposition -- and in the case ofPropositions containing children, those children as well -- and returns the boolean result;Returns an unmodifiableList ofPropositions.booleanIndicates whether thisPropositioncan have children.voidlogPropositionResult(Proposition proposition, PropositionResult propositionResult, ExecutionEnvironment environment)
-
Constructor Details
-
CompoundProposition
Create a CompoundProposition with the given values- Parameters:
logicalOperator-LogicalOperatorto set logicalOperator topropositions- to set the propositions to
-
-
Method Details
-
evaluate
Description copied from interface:PropositionEvaluates this proposition -- and in the case ofPropositions containing children, those children as well -- and returns the boolean result;- Specified by:
evaluatein interfaceProposition- Parameters:
environment- theExecutionEnvironmentthat thisPropositionis running in- Returns:
- the boolean result of evaluation
-
logPropositionResult
public void logPropositionResult(Proposition proposition, PropositionResult propositionResult, ExecutionEnvironment environment) -
getChildren
Returns an unmodifiableList ofPropositions.- Specified by:
getChildrenin interfaceProposition- Returns:
- an unmodifiableList of
Propositions
-
isCompound
public boolean isCompound()Description copied from interface:PropositionIndicates whether thisPropositioncan have children.- Specified by:
isCompoundin interfaceProposition- Returns:
- true if this
Propositioncan contain childPropositions.
-