org.knime.base.node.mine.sota.logic
Class SotaDoubleCell

java.lang.Object
  extended by org.knime.base.node.mine.sota.logic.SotaDoubleCell
All Implemented Interfaces:
Serializable, SotaCell, DataValue, DoubleValue

public class SotaDoubleCell
extends Object
implements SotaCell, DoubleValue, Serializable

Author:
Kilian Thiel, University of Konstanz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.data.DoubleValue
DoubleValue.DoubleUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue
DataValue.UtilityFactory
 
Field Summary
 
Fields inherited from interface org.knime.core.data.DoubleValue
UTILITY
 
Constructor Summary
SotaDoubleCell(double value)
          Creates new instance of SotaCell with given value.
 
Method Summary
 void adjustCell(DataCell cell, double learningrate)
          Adjusts the cells value related to the given cell with given learningrate.
 SotaCell clone()
          Clones the SotaCell instance and returns the clone.
 double getDoubleValue()
          
 String getType()
          
 double getValue()
          Returns a double value of the cell.
 void loadFrom(ModelContentRO modelContent)
          Loads the values from the given ModelContentWO.
 void saveTo(ModelContentWO modelContent)
          Saves the value of the SotaCell to the given ModelContentWO.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SotaDoubleCell

public SotaDoubleCell(double value)
Creates new instance of SotaCell with given value.

Parameters:
value - value to set
Method Detail

getDoubleValue

public double getDoubleValue()

Specified by:
getDoubleValue in interface DoubleValue
Returns:
A generic double value.

adjustCell

public void adjustCell(DataCell cell,
                       double learningrate)
Adjusts the cells value related to the given cell with given learningrate.

Specified by:
adjustCell in interface SotaCell
Parameters:
cell - cell to adjust SotaCell with
learningrate - learningrate to adjust cell value with

getValue

public double getValue()
Returns a double value of the cell.

Specified by:
getValue in interface SotaCell
Returns:
a double value of the cell

clone

public SotaCell clone()
Clones the SotaCell instance and returns the clone.

Specified by:
clone in interface SotaCell
Overrides:
clone in class Object
Returns:
the clone of the SotaCell instance

loadFrom

public void loadFrom(ModelContentRO modelContent)
              throws InvalidSettingsException
Loads the values from the given ModelContentWO.

Specified by:
loadFrom in interface SotaCell
Parameters:
modelContent - The ModelContentWO to load the values from.
Throws:
InvalidSettingsException - If setting to load is not valid.

saveTo

public void saveTo(ModelContentWO modelContent)
Saves the value of the SotaCell to the given ModelContentWO.

Specified by:
saveTo in interface SotaCell
Parameters:
modelContent - The ModelContentWO to save the values to.

getType

public String getType()

Specified by:
getType in interface SotaCell
Returns:
Returns the cells type.


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.