Class DecisionTreeResult
java.lang.Object
com.northconcepts.datapipeline.foundations.core.Bean
com.northconcepts.datapipeline.foundations.core.FoundationObject
com.northconcepts.datapipeline.foundations.decisiontree.DecisionTreeObject
com.northconcepts.datapipeline.foundations.decisiontree.DecisionTreeResult
- All Implemented Interfaces:
DataExceptionContributor,JsonSerializable,RecordSerializable,XmlSerializable,Serializable
The result of evaluating a
DecisionTree: the path of nodes entered and the combined outcome fields.- See Also:
-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
internalId, internalName, log, TIMESTAMP_FORMATFields inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
SERIALIZED_CLASS_NAME, TYPEFields inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
XML_SERIALIZED_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToPath(DecisionTreeNode node) Appends a node to the path, throwing an exception if it is already in the path (a cycle).Returns the fields set by the outcomes of the visited nodes; never null.getPath()Returns the nodes entered because their conditions held, in order from the root; the root and default nodes are not included.Methods inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
addExceptionProperties, assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalIdMethods inherited from class com.northconcepts.datapipeline.foundations.core.Bean
fromRecord, toRecord, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.core.DataExceptionContributor
addExceptionPropertiesMethods inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
fromJson, fromJson, toJson, toJson, toJsonMethods inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
fromXml, fromXml, fromXmlElement, toXml, toXml, toXml, toXml, toXml, toXmlElement
-
Constructor Details
-
DecisionTreeResult
public DecisionTreeResult()
-
-
Method Details
-
getPath
Returns the nodes entered because their conditions held, in order from the root; the root and default nodes are not included. -
addToPath
Appends a node to the path, throwing an exception if it is already in the path (a cycle). -
getOutcome
Returns the fields set by the outcomes of the visited nodes; never null. -
getOutcomeAsJson
-