Class InnerNodeImpl<C,V,T>
java.lang.Object
org.aksw.jenax.arq.decisiontree.api.DtNodeBase<C,V,T>
org.aksw.jenax.arq.decisiontree.api.InnerNodeImpl<C,V,T>
- All Implemented Interfaces:
Serializable,DtNode<C,,V, T> InnerNode<C,V, T>
public class InnerNodeImpl<C,V,T>
extends DtNodeBase<C,V,T>
implements InnerNode<C,V,T>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Cprotected com.google.common.collect.Table<com.google.common.base.Optional<V>,com.google.common.base.Optional<C>, InnerNode<C, V, T>> Beware of theOptionalvsOptionalbecause the latter is NOT serializable...Fields inherited from class org.aksw.jenax.arq.decisiontree.api.DtNodeBase
parent, reachingValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInnerNode(V value, C classifier) Get the inner node for the given value and classifier; returns null if it does not existCollection<? extends InnerNode<C,V, T>> Get all child inner nodesCollection<? extends InnerNode<C,V, T>> getInnerNodes(Object value) Lookup a node for a given valuegetLeafNode(Object value) Get the leaf node for the given value; returns null if it does not existCollection<? extends LeafNode<C,V, T>> getOrCreateInnerNode(V value, C classifier) Get the inner node for the given value and classifier; create it if it does not existgetOrCreateLeafNode(V value) Get the leaf node for the given value; create it if it does not existtoString()Methods inherited from class org.aksw.jenax.arq.decisiontree.api.DtNodeBase
getReachingValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aksw.jenax.arq.decisiontree.api.DtNode
asInnerNode, asLeafNode, getReachingValue, isInnerNode, isLeafNode
-
Field Details
-
classifier
-
valueToConditionToInnerNode
protected com.google.common.collect.Table<com.google.common.base.Optional<V>,com.google.common.base.Optional<C>, valueToConditionToInnerNodeInnerNode<C, V, T>> Beware of theOptionalvsOptionalbecause the latter is NOT serializable... and Table does not allow null values -
valueToLeafNode
-
-
Constructor Details
-
InnerNodeImpl
-
-
Method Details
-
getParent
-
getClassifier
- Specified by:
getClassifierin interfaceInnerNode<C,V, T>
-
getInnerNodes
Get all child inner nodes- Specified by:
getInnerNodesin interfaceInnerNode<C,V, T>
-
getInnerNodes
Description copied from interface:InnerNodeLookup a node for a given value- Specified by:
getInnerNodesin interfaceInnerNode<C,V, T>
-
getInnerNode
Description copied from interface:InnerNodeGet the inner node for the given value and classifier; returns null if it does not exist- Specified by:
getInnerNodein interfaceInnerNode<C,V, T>
-
getOrCreateInnerNode
Description copied from interface:InnerNodeGet the inner node for the given value and classifier; create it if it does not exist- Specified by:
getOrCreateInnerNodein interfaceInnerNode<C,V, T>
-
getLeafNodes
- Specified by:
getLeafNodesin interfaceInnerNode<C,V, T>
-
getLeafNode
Description copied from interface:InnerNodeGet the leaf node for the given value; returns null if it does not exist- Specified by:
getLeafNodein interfaceInnerNode<C,V, T>
-
getOrCreateLeafNode
Description copied from interface:InnerNodeGet the leaf node for the given value; create it if it does not exist- Specified by:
getOrCreateLeafNodein interfaceInnerNode<C,V, T>
-
toString
-