org.knime.base.node.mine.decisiontree2
Class PMMLDecisionTreePortObject
java.lang.Object
org.knime.core.node.port.pmml.PMMLPortObject
org.knime.base.node.mine.decisiontree2.PMMLDecisionTreePortObject
- All Implemented Interfaces:
- PortObject
public class PMMLDecisionTreePortObject
- extends PMMLPortObject
- implements PortObject
- Author:
- Christian Albrecht, University of Konstanz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final PortType TYPE
PMMLDecisionTreePortObject
public PMMLDecisionTreePortObject(DecisionTree tree,
PMMLPortObjectSpec spec)
- Parameters:
tree
- underlying decision treespec
- pmml mining schema of the tree
PMMLDecisionTreePortObject
public PMMLDecisionTreePortObject()
writePMMLModel
protected void writePMMLModel(TransformerHandler handler)
throws SAXException
-
- Specified by:
writePMMLModel
in class PMMLPortObject
- Parameters:
handler
- the handler responsible for writing the PMML
- Throws:
SAXException
- if something goes wrong during writing the PMML
loadFrom
public void loadFrom(PMMLPortObjectSpec spec,
InputStream stream,
String version)
throws ParserConfigurationException,
SAXException,
IOException
-
- Overrides:
loadFrom
in class PMMLPortObject
- Parameters:
spec
- the referring spec of this objectstream
- the input stream to write toversion
- the version (3.0 - 3.1)
- Throws:
ParserConfigurationException
- if the parser cannot be instantiated
SAXException
- if something goes wrong during writing
IOException
- if the file cannot be found
getTree
public DecisionTree getTree()
- Returns:
- loaded classification tree object
getSummary
public String getSummary()
- Get a short summary of this
PortObject
.
The return value will be shown in a node port's tooltip, for instance.
- Specified by:
getSummary
in interface PortObject
- Specified by:
getSummary
in class PMMLPortObject
- Returns:
- Summary of the object's content, suitable for a tooltip. Empty
strings and null result values are ok (though not encouraged).
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.