org.knime.base.node.mine.bayes.naivebayes.port
Class NaiveBayesPortObjectSpec

java.lang.Object
  extended by org.knime.core.node.port.AbstractSimplePortObjectSpec
      extended by org.knime.base.node.mine.bayes.naivebayes.port.NaiveBayesPortObjectSpec
All Implemented Interfaces:
PortObjectSpec

public class NaiveBayesPortObjectSpec
extends AbstractSimplePortObjectSpec

The Naive Bayes specific port object specification implementation.

Author:
Tobias Koetter, 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
NaiveBayesPortObjectSpec()
          Constructor for class NaiveBayesPortObjectSpec.
NaiveBayesPortObjectSpec(DataTableSpec traingDataSpec, DataColumnSpec classColumn)
          Constructor for class NaiveBayesPortObjectSpec.
 
Method Summary
 DataColumnSpec getClassColumn()
           
 DataTableSpec getTableSpec()
           
protected  void load(ModelContentRO model)
          Loads the content into the freshly instantiated object.
protected  void save(ModelContentWO model)
          Saves this object to model content object.
 
Methods inherited from class org.knime.core.node.port.AbstractSimplePortObjectSpec
equals, getPortObjectSpecSerializer, getViews, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaiveBayesPortObjectSpec

public NaiveBayesPortObjectSpec()
Constructor for class NaiveBayesPortObjectSpec.


NaiveBayesPortObjectSpec

public NaiveBayesPortObjectSpec(DataTableSpec traingDataSpec,
                                DataColumnSpec classColumn)
Constructor for class NaiveBayesPortObjectSpec.

Parameters:
traingDataSpec - the DataTableSpec of the training data table
classColumn - the name of the class column
Method Detail

load

protected void load(ModelContentRO model)
             throws InvalidSettingsException
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 AbstractSimplePortObjectSpec
Parameters:
model - To load from.
Throws:
InvalidSettingsException - If settings are incomplete/deficient.

save

protected void save(ModelContentWO model)
Saves this object to model content object.

Specified by:
save in class AbstractSimplePortObjectSpec
Parameters:
model - To save to.

getTableSpec

public DataTableSpec getTableSpec()
Returns:
the tableSpec of the training data

getClassColumn

public DataColumnSpec getClassColumn()
Returns:
the column that contained the classes


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.