org.knime.base.util.coordinate
Class CoordinateMapping

java.lang.Object
  extended by org.knime.base.util.coordinate.CoordinateMapping
Direct Known Subclasses:
DoubleCoordinateMapping, IntegerCoordinateMapping, NominalCoordinateMapping

public abstract class CoordinateMapping
extends Object

Abstract class describing a coordinate mapping. A coordinate mapping describes the mapping from a real data domain to a fixed length coordinate axis.

Author:
Christoph Sieb, University of Konstanz

Constructor Summary
CoordinateMapping(String stringDomValue, double mappingValue)
          Constructs a coordinate mapping from a string representation of the domain value and its mapping value.
 
Method Summary
 String getDomainValueAsString()
          A coordinate mapping must also return the corresponding domain value as a string.
 double getMappingValue()
          Each coordinate mapping must return the mapping value as a double.
(package private)  String getStringDomainValue()
           
 DataValue[] getValues()
          Returns the values if set.
 void setValues(DataValue... values)
          Sets values of this mapping.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateMapping

CoordinateMapping(String stringDomValue,
                  double mappingValue)
Constructs a coordinate mapping from a string representation of the domain value and its mapping value.

Parameters:
stringDomValue - the domain value as a string
mappingValue - the corresponding mapping
Method Detail

getMappingValue

public double getMappingValue()
Each coordinate mapping must return the mapping value as a double.

Returns:
the mapping value

getDomainValueAsString

public String getDomainValueAsString()
A coordinate mapping must also return the corresponding domain value as a string.

Returns:
the domain value as string

getStringDomainValue

String getStringDomainValue()
Returns:
the string representation of the domain value.

toString

public String toString()

Overrides:
toString in class Object

getValues

public DataValue[] getValues()
Returns the values if set.

Returns:
the values

setValues

public void setValues(DataValue... values)
Sets values of this mapping.

Parameters:
values - the values


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.