org.knime.core.data.def
Class LongCell

java.lang.Object
  extended by org.knime.core.data.DataCell
      extended by org.knime.core.data.def.LongCell
All Implemented Interfaces:
Serializable, BoundedValue, ComplexNumberValue, DataValue, DoubleValue, FuzzyIntervalValue, FuzzyNumberValue, LongValue

public class LongCell
extends DataCell
implements LongValue, DoubleValue, ComplexNumberValue, FuzzyNumberValue, FuzzyIntervalValue, BoundedValue

Author:
Thorsten Meinl, University of Konstanz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.knime.core.data.LongValue
LongValue.LongUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.DoubleValue
DoubleValue.DoubleUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.ComplexNumberValue
ComplexNumberValue.ComplexNumberUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyNumberValue
FuzzyNumberValue.FuzzyNumberUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyIntervalValue
FuzzyIntervalValue.FuzzyIntervalUtilityFactory
 
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue
DataValue.UtilityFactory
 
Field Summary
static DataType TYPE
          Convenience access member for DataType.getType(LongCell.class).
 
Fields inherited from interface org.knime.core.data.LongValue
UTILITY
 
Fields inherited from interface org.knime.core.data.DoubleValue
UTILITY
 
Fields inherited from interface org.knime.core.data.ComplexNumberValue
UTILITY
 
Fields inherited from interface org.knime.core.data.FuzzyNumberValue
UTILITY
 
Fields inherited from interface org.knime.core.data.FuzzyIntervalValue
UTILITY
 
Constructor Summary
LongCell(long l)
          Creates new cell for a generic long value.
 
Method Summary
protected  boolean equalsDataCell(DataCell dc)
          Derived classes implement their specific equals function here.
static DataCellSerializer<LongCell> getCellSerializer()
          Returns the factory to read/write DataCells of this class from/to a DataInput/DataOutput.
 double getCenterOfGravity()
          
 double getCore()
          
 double getDoubleValue()
          
 double getImaginaryValue()
          
 long getLongValue()
          
 double getMaxCore()
          
 double getMaxSupport()
          
 double getMinCore()
          
 double getMinSupport()
          
static Class<? extends DataValue> getPreferredValueClass()
          Returns the preferred value class of this cell implementation.
 double getRealValue()
          
 int hashCode()
          This method must be implemented in order to ensure that two equal DataCell objects return the same hash code.
 String toString()
          Returns the String representation of this cell's value.
 
Methods inherited from class org.knime.core.data.DataCell
equals, getType, isMissing
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final DataType TYPE
Convenience access member for DataType.getType(LongCell.class).

See Also:
DataType.getType(Class)
Constructor Detail

LongCell

public LongCell(long l)
Creates new cell for a generic long value.

Parameters:
l - The long value to store.
Method Detail

getPreferredValueClass

public static final Class<? extends DataValue> getPreferredValueClass()
Returns the preferred value class of this cell implementation. This method is called per reflection to determine which is the preferred renderer, comparator, etc.

Returns:
LongValue.class;

getCellSerializer

public static final DataCellSerializer<LongCell> getCellSerializer()
Returns the factory to read/write DataCells of this class from/to a DataInput/DataOutput. This method is called via reflection.

Returns:
A serializer for reading/writing cells of this kind.
See Also:
DataCell

getLongValue

public long getLongValue()

Specified by:
getLongValue in interface LongValue
Returns:
A generic long value.

getDoubleValue

public double getDoubleValue()

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

getCore

public double getCore()

Specified by:
getCore in interface FuzzyNumberValue
Returns:
Core value.

getMaxSupport

public double getMaxSupport()

Specified by:
getMaxSupport in interface FuzzyIntervalValue
Specified by:
getMaxSupport in interface FuzzyNumberValue
Returns:
Maximum support value.

getMinSupport

public double getMinSupport()

Specified by:
getMinSupport in interface FuzzyIntervalValue
Specified by:
getMinSupport in interface FuzzyNumberValue
Returns:
Minimum support value.

getMaxCore

public double getMaxCore()

Specified by:
getMaxCore in interface FuzzyIntervalValue
Returns:
Maximum core value.

getMinCore

public double getMinCore()

Specified by:
getMinCore in interface FuzzyIntervalValue
Returns:
Minimum core value.

getCenterOfGravity

public double getCenterOfGravity()

Specified by:
getCenterOfGravity in interface FuzzyIntervalValue
Returns:
The center of gravity of this fuzzy membership function.

getImaginaryValue

public double getImaginaryValue()

Specified by:
getImaginaryValue in interface ComplexNumberValue
Returns:
The imaginary part of the complex number

getRealValue

public double getRealValue()

Specified by:
getRealValue in interface ComplexNumberValue
Returns:
The real part of the complex number

equalsDataCell

protected boolean equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here. The argument is guaranteed to be not null or a missing value, to be of the same class like this.

Specified by:
equalsDataCell in class DataCell
Parameters:
dc - the cell to compare this to
Returns:
true if this is equal to the argument, false if not

hashCode

public int hashCode()
This method must be implemented in order to ensure that two equal DataCell objects return the same hash code.

Specified by:
hashCode in class DataCell
Returns:
the hash code of your specific DataCell
See Also:
Object.hashCode(), DataCell.equals(java.lang.Object)

toString

public String toString()
Returns the String representation of this cell's value.

Specified by:
toString in class DataCell
Returns:
a String representation of this cell's value


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.