org.kuali.rice.krms.framework.engine
Class CompoundProposition
java.lang.Object
org.kuali.rice.krms.framework.engine.CompoundProposition
- All Implemented Interfaces:
- org.kuali.rice.krms.framework.engine.Proposition
public final class CompoundProposition
- extends Object
- implements org.kuali.rice.krms.framework.engine.Proposition
An implementation of Proposition
which holds other Propositions and a LogicalOperator
.
NOTE - this is a patched version of CompoundProposition which fixes bugs in evaluation "OR"-ed propositions
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Constructor Summary |
CompoundProposition(org.kuali.rice.krms.api.repository.LogicalOperator logicalOperator,
List<org.kuali.rice.krms.framework.engine.Proposition> propositions)
Create a CompoundProposition with the given values |
Method Summary |
org.kuali.rice.krms.framework.engine.PropositionResult |
evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
|
List<org.kuali.rice.krms.framework.engine.Proposition> |
getChildren()
Returns an unmodifiableList of Proposition s. |
boolean |
isCompound()
|
void |
logPropositionResult(org.kuali.rice.krms.framework.engine.Proposition proposition,
org.kuali.rice.krms.framework.engine.PropositionResult propositionResult,
org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundProposition
public CompoundProposition(org.kuali.rice.krms.api.repository.LogicalOperator logicalOperator,
List<org.kuali.rice.krms.framework.engine.Proposition> propositions)
- Create a CompoundProposition with the given values
- Parameters:
logicalOperator
- LogicalOperator
to set logicalOperator topropositions
- to set the propositions to
evaluate
public org.kuali.rice.krms.framework.engine.PropositionResult evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
- Specified by:
evaluate
in interface org.kuali.rice.krms.framework.engine.Proposition
logPropositionResult
public void logPropositionResult(org.kuali.rice.krms.framework.engine.Proposition proposition,
org.kuali.rice.krms.framework.engine.PropositionResult propositionResult,
org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
getChildren
public List<org.kuali.rice.krms.framework.engine.Proposition> getChildren()
- Returns an unmodifiableList of
Proposition
s.
- Specified by:
getChildren
in interface org.kuali.rice.krms.framework.engine.Proposition
- Returns:
- an unmodifiableList of
Proposition
s
isCompound
public boolean isCompound()
- Specified by:
isCompound
in interface org.kuali.rice.krms.framework.engine.Proposition
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.