org.knime.base.node.mine.pca
Class PCAModelPortObjectSpec

java.lang.Object
  extended by org.knime.base.node.mine.pca.PCAModelPortObjectSpec
All Implemented Interfaces:
PortObjectSpec

public class PCAModelPortObjectSpec
extends Object
implements PortObjectSpec

Spec for pca model port object.

Author:
uwe, University of Konstanz

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObjectSpec
PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec>
 
Constructor Summary
PCAModelPortObjectSpec(String[] columnNames)
          create object spec.
 
Method Summary
 String[] getColumnNames()
           
 double[] getEigenValues()
           
static PortObjectSpec.PortObjectSpecSerializer<PCAModelPortObjectSpec> getPortObjectSpecSerializer()
          Method required by the interface PortObjectSpec.
 JComponent[] getViews()
          The returned views are displayed in the out port view of the referring node.
 void setEigenValues(double[] eigenvalues)
          set eigenvalues of existing pca.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCAModelPortObjectSpec

public PCAModelPortObjectSpec(String[] columnNames)
create object spec.

Parameters:
columnNames - names of input columns
Method Detail

getColumnNames

public String[] getColumnNames()
Returns:
names of input columns

getViews

public JComponent[] getViews()
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.

Specified by:
getViews in interface PortObjectSpec
Returns:
an array of views for the port object spec, each displayed as a tab in the out port view

getPortObjectSpecSerializer

public static PortObjectSpec.PortObjectSpecSerializer<PCAModelPortObjectSpec> getPortObjectSpecSerializer()
Method required by the interface PortObjectSpec. Not meant for public use.

Returns:
A new serializer responsible for loading/saving.

setEigenValues

public void setEigenValues(double[] eigenvalues)
set eigenvalues of existing pca.

Parameters:
eigenvalues -

getEigenValues

public double[] getEigenValues()
Returns:
the eigenvalues


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.