org.kuali.rice.krms.framework.engine
Class CompoundProposition

java.lang.Object
  extended by 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 Propositions.
 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
 

Constructor Detail

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 to
propositions - to set the propositions to
Method Detail

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 Propositions.

Specified by:
getChildren in interface org.kuali.rice.krms.framework.engine.Proposition
Returns:
an unmodifiableList of Propositions

isCompound

public boolean isCompound()
Specified by:
isCompound in interface org.kuali.rice.krms.framework.engine.Proposition


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.