org.kuali.rice.krms.framework.engine
Class CompoundProposition
java.lang.Object
org.kuali.rice.krms.framework.engine.CompoundProposition
- All Implemented Interfaces:
- Proposition
public final class CompoundProposition
- extends Object
- implements Proposition
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final ResultLogger LOG
logicalOperator
private final LogicalOperator logicalOperator
propositions
private final List<Proposition> propositions
CompoundProposition
public CompoundProposition(LogicalOperator logicalOperator,
List<Proposition> propositions)
evaluate
public boolean evaluate(ExecutionEnvironment environment)
- Description copied from interface:
Proposition
- This method evaluates this proposition -- and in the case of
Proposition
s 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
evaluateInner
private boolean evaluateInner(ExecutionEnvironment environment)
- This method handles the evaluation logic
- Parameters:
environment
-
- Returns:
getChildren
public List<Proposition> getChildren()
- Description copied from interface:
Proposition
- This method returns the
List
of child Proposition
s that belong to this object.
If there are no children (e.g. for simple Proposition
types), this must
return an empty List
.
- Specified by:
getChildren
in interface Proposition
- Returns:
- a
List
containing any child Proposition
s that belong to this object. Must never return null.
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 Proposition
s.
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.