org.knime.core.node.port.pmml.preproc
Class PMMLPreprocPortObject

java.lang.Object
  extended by org.knime.core.node.port.AbstractPortObject
      extended by org.knime.core.node.port.pmml.preproc.PMMLPreprocPortObject
All Implemented Interfaces:
PortObject
Direct Known Subclasses:
PMMLDiscretizePreprocPortObject

Deprecated.

@Deprecated
public class PMMLPreprocPortObject
extends AbstractPortObject

The PMML preprocessing operations can now be included directly in the PMMLPortObject instead of handling them in a special port type.

Author:
Dominik Morent, KNIME.com, Zurich, Switzerland

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject
PortObject.PortObjectSerializer<T extends PortObject>
 
Field Summary
protected static String CDATA
          Deprecated. Constant for CDATA.
protected static String LOCAL_TRANS
          Deprecated.  
static PortType TYPE
          Deprecated. Convenience accessor for the port type.
 
Constructor Summary
PMMLPreprocPortObject()
          Deprecated.  
PMMLPreprocPortObject(PMMLPreprocOperation... operations)
          Deprecated.  
PMMLPreprocPortObject(PMMLPreprocPortObject... port)
          Deprecated.  
 
Method Summary
(package private) static TransformerHandler createTransformerHandlerForSave(OutputStream out)
          Deprecated.  
 List<PMMLPreprocOperation> getOperations()
          Deprecated.  
 PMMLPreprocPortObjectSpec getSpec()
          Deprecated. Get specification to this port object.
 String getSummary()
          Deprecated. Get a short summary of this PortObject.
 JComponent[] getViews()
          Deprecated. The returned views are displayed in the out port view of the referring node.
protected  void load(PortObjectZipInputStream in, PortObjectSpec spec, ExecutionMonitor exec)
          Deprecated. Loads the content into the freshly instantiated object.
protected  void save(PortObjectZipOutputStream out, ExecutionMonitor exec)
          Deprecated. Saves this object to an output stream.
 
Methods inherited from class org.knime.core.node.port.AbstractPortObject
getPortObjectSerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final PortType TYPE
Deprecated. 
Convenience accessor for the port type.


LOCAL_TRANS

protected static final String LOCAL_TRANS
Deprecated. 
See Also:
Constant Field Values

CDATA

protected static final String CDATA
Deprecated. 
Constant for CDATA.

See Also:
Constant Field Values
Constructor Detail

PMMLPreprocPortObject

public PMMLPreprocPortObject()
Deprecated. 

PMMLPreprocPortObject

public PMMLPreprocPortObject(PMMLPreprocOperation... operations)
Deprecated. 

PMMLPreprocPortObject

public PMMLPreprocPortObject(PMMLPreprocPortObject... port)
Deprecated. 
Method Detail

load

protected void load(PortObjectZipInputStream in,
                    PortObjectSpec spec,
                    ExecutionMonitor exec)
             throws IOException,
                    CanceledExecutionException
Deprecated. 
Loads the content into the freshly instantiated object. This method is called at most once in the life time of the object (after the serializer has created a new object using the public no-arg constructor.)

Specified by:
load in class AbstractPortObject
Parameters:
in - To restore from
spec - The accompanying spec (which can be safely cast to the expected class).
exec - For progress/cancelation.
Throws:
IOException - If reading fails.
CanceledExecutionException - If canceled.

save

protected void save(PortObjectZipOutputStream out,
                    ExecutionMonitor exec)
             throws IOException,
                    CanceledExecutionException
Deprecated. 
Saves this object to an output stream. This method represents the implementation of #savePortObject(PortObject, PortObjectZipOutputStream, ExecutionMonitor).

Specified by:
save in class AbstractPortObject
Parameters:
out - A clean directory to write to.
exec - For progress/cancelation.
Throws:
IOException - If writing fails
CanceledExecutionException - If canceled.

createTransformerHandlerForSave

static TransformerHandler createTransformerHandlerForSave(OutputStream out)
                                                   throws TransformerConfigurationException,
                                                          SAXException
Deprecated. 
Throws:
TransformerConfigurationException
SAXException

getSpec

public PMMLPreprocPortObjectSpec getSpec()
Deprecated. 
Get specification to this port object. That is, the corresponding PortObjectSpec which is used to configure any successor node after execution, e.g. a BufferedDataTable can return a DataTableSpec.

Subclasses should narrow the return type if possible.

Returns:
underlying PortObjectSpec or any derived spec, never null.

getSummary

public String getSummary()
Deprecated. 
Get a short summary of this PortObject. The return value will be shown in a node port's tooltip, for instance.

Returns:
Summary of the object's content, suitable for a tooltip. Empty strings and null result values are ok (though not encouraged).

getViews

public JComponent[] getViews()
Deprecated. 
The returned views are displayed in the out port view of the referring node. Each component is displayed in an extra tab. The name of the component is used as the title for the tab. It is important that no external members are kept in the component so it can be deleted, when the port object is deleted. If the port object has no view return an empty array.

Returns:
an array of views for the port object, each displayed as a tab in the out port view

getOperations

public List<PMMLPreprocOperation> getOperations()
Deprecated. 
Returns:
the operations


Copyright, 2003 - 2012. 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.