static class CARTImpl.MatchingNode extends CARTImpl.DecisionNode
Modifier and Type | Field and Description |
---|---|
(package private) Pattern |
pattern |
qfalse, qtrue
value
Constructor and Description |
---|
MatchingNode(String feature,
String regex,
int qtrue,
int qfalse)
Create a new MatchingNode with the given values.
|
Modifier and Type | Method and Description |
---|---|
int |
getNextNode(Object val)
Compare the given value and return the appropriate CART index.
|
String |
toString()
Get a string representation of this Node.
|
findFeature, getFeature, getNextNode
dumpBinary, getValue, getValueString, setCreationLine
public MatchingNode(String feature, String regex, int qtrue, int qfalse)
feature
- the string used to get a value from an Itemregex
- the regular expressionqtrue
- the Node index to go to if the comparison matchesqfalse
- the Node index to go to upon no matchpublic int getNextNode(Object val)
getNextNode
in class CARTImpl.DecisionNode
val
- the value to compare -- this must be a StringWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses