Package generic.constraint
Class DecisionNode<T>
- java.lang.Object
-
- generic.constraint.DecisionNode<T>
-
- Type Parameters:
T
- the type of objects that the constraint operates on.
- Direct Known Subclasses:
RootDecisionNode
public class DecisionNode<T> extends java.lang.Object
A node in a decision tree. Each node contains exactly one constraint and a map of property values.
-
-
Constructor Summary
Constructors Constructor Description DecisionNode(Constraint<T> constraint, DecisionNode<T> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>
getDecisionPath()
DecisionNode<T>
getOrCreateNodeForContraint(Constraint<T> newConstraint)
boolean
populateDecisions(T t, DecisionSet decisionSet, java.lang.String propertyName)
void
setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String source)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DecisionNode
public DecisionNode(Constraint<T> constraint, DecisionNode<T> parent)
-
-
Method Detail
-
getOrCreateNodeForContraint
public DecisionNode<T> getOrCreateNodeForContraint(Constraint<T> newConstraint)
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String source) throws XmlParseException
- Throws:
XmlParseException
-
populateDecisions
public boolean populateDecisions(T t, DecisionSet decisionSet, java.lang.String propertyName)
-
getDecisionPath
protected java.util.List<java.lang.String> getDecisionPath()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-