public final class CompoundProposition extends Object implements org.kuali.rice.krms.framework.engine.Proposition
Proposition
which holds other Propositions and a LogicalOperator
.
NOTE - this is a patched version of CompoundProposition which fixes bugs in evaluation "OR"-ed propositionsConstructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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) |
public CompoundProposition(org.kuali.rice.krms.api.repository.LogicalOperator logicalOperator, List<org.kuali.rice.krms.framework.engine.Proposition> propositions)
logicalOperator
- LogicalOperator
to set logicalOperator topropositions
- to set the propositions topublic org.kuali.rice.krms.framework.engine.PropositionResult evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
evaluate
in interface org.kuali.rice.krms.framework.engine.Proposition
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)
public List<org.kuali.rice.krms.framework.engine.Proposition> getChildren()
Proposition
s.getChildren
in interface org.kuali.rice.krms.framework.engine.Proposition
Proposition
spublic boolean isCompound()
isCompound
in interface org.kuali.rice.krms.framework.engine.Proposition
Copyright © 2004–2016 The Kuali Foundation. All rights reserved.