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

java.lang.Object
  extended by org.kuali.rice.krms.framework.engine.CompoundProposition
All Implemented Interfaces:
Proposition

public final class CompoundProposition
extends Object
implements Proposition

An implementation of Proposition which holds other Propositions and a LogicalOperator.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
CompoundProposition(LogicalOperator logicalOperator, List<Proposition> propositions)
          Create a CompoundProposition with the given values
 
Method Summary
 PropositionResult evaluate(ExecutionEnvironment environment)
          Evaluates this proposition -- and in the case of Propositions containing children, those children as well -- and returns the boolean result;
 List<Proposition> getChildren()
          Returns an unmodifiableList of Propositions.
 boolean isCompound()
          Indicates whether this Proposition can have children.
 void logPropositionResult(Proposition proposition, PropositionResult propositionResult, 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(LogicalOperator logicalOperator,
                           List<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 PropositionResult evaluate(ExecutionEnvironment environment)
Description copied from interface: Proposition
Evaluates this proposition -- and in the case of Propositions containing children, those children as well -- and returns the boolean result;

Specified by:
evaluate in interface Proposition
Parameters:
environment - the ExecutionEnvironment that this Proposition is running in
Returns:
the boolean result of evaluation

logPropositionResult

public void logPropositionResult(Proposition proposition,
                                 PropositionResult propositionResult,
                                 ExecutionEnvironment environment)

getChildren

public List<Proposition> getChildren()
Returns an unmodifiableList of Propositions.

Specified by:
getChildren in interface Proposition
Returns:
an unmodifiableList of Propositions

isCompound

public boolean isCompound()
Description copied from interface: Proposition
Indicates whether this Proposition can have children.

Specified by:
isCompound in interface Proposition
Returns:
true if this Proposition can contain child Propositions.


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.