|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.decisiontree2.PMMLPredicate
org.knime.base.node.mine.decisiontree2.PMMLCompoundPredicate
public class PMMLCompoundPredicate
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.knime.base.node.mine.decisiontree2.PMMLPredicate |
|---|
PMMLPredicate.PMMLPredicates |
| Field Summary | |
|---|---|
static String |
NAME
The string representation of the predicate's XML-element. |
| Fields inherited from class org.knime.base.node.mine.decisiontree2.PMMLPredicate |
|---|
ATTRIBUTE_KEY, CDATA, NUMBERFORMAT, OPERATOR_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
PMMLCompoundPredicate()
Build a new PMMLCompoundPredicate. |
|
PMMLCompoundPredicate(PMMLBooleanOperator operator)
Build a new PMMLCompoundPredicate. |
|
PMMLCompoundPredicate(String operator)
Build a new PMMLCompoundPredicate. |
|
| Method Summary | |
|---|---|
boolean |
addPredicate(PMMLPredicate pred)
Adds a PMMLPredicate. |
Boolean |
evaluate(DataRow row,
DataTableSpec spec)
Evaluates the predicate for the passed parameters and returns the result. |
(package private) PMMLBooleanOperator |
getBooleanOperator()
|
PMMLPredicate |
getLastPredicate()
Returns the PMMLPredicate that was most recently added. |
String |
getName()
Returns the name of the predicate. |
LinkedList<PMMLPredicate> |
getPredicates()
Returns all contained predicates. |
String |
getSplitAttribute()
Returns the name of the field the predicate operates on, an empty String if it works on multiple attributes, or null if not applicable. |
void |
loadFromPredParams(Config conf)
Load internal predicate settings from a config object. |
void |
saveToPredParams(Config conf)
Save internal predicate settings to a config object. |
void |
setPredicates(LinkedList<PMMLPredicate> predicates)
Sets the contained predicates. |
String |
toString()
|
| Methods inherited from class org.knime.base.node.mine.decisiontree2.PMMLPredicate |
|---|
cacheSpec, getOperator, getPredicateForConfig, getPredicateForType, getPreviousIndex, getPreviousSpec, setOperator, setOperator, setPreviousIndex, setPreviousSpec, setSplitAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public PMMLCompoundPredicate()
public PMMLCompoundPredicate(String operator)
operator - the string representation of the operatorpublic PMMLCompoundPredicate(PMMLBooleanOperator operator)
operator - the PMML operator to be set| Method Detail |
|---|
public PMMLPredicate getLastPredicate()
LinkedList.getLast()public boolean addPredicate(PMMLPredicate pred)
pred - the predicate to be added
LinkedList.add(java.lang.Object)public LinkedList<PMMLPredicate> getPredicates()
public void setPredicates(LinkedList<PMMLPredicate> predicates)
predicates - the predicates to set
public Boolean evaluate(DataRow row,
DataTableSpec spec)
evaluate in class PMMLPredicaterow - The data row containing the data cells to be evaluated.spec - The spec for the row.
public String getSplitAttribute()
getSplitAttribute in class PMMLPredicatepublic String getName()
getName in class PMMLPredicatePMMLBooleanOperator getBooleanOperator()
public void loadFromPredParams(Config conf)
throws InvalidSettingsException
loadFromPredParams in class PMMLPredicateconf - the config object to load from
InvalidSettingsException - - if invalid settings are providedpublic void saveToPredParams(Config conf)
saveToPredParams in class PMMLPredicateconf - the config object to write intopublic String toString()
toString in class PMMLPredicate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||