uk.ac.starlink.ttools.plot2.data
Class Input

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.data.Input

public class Input
extends Object

Characterises a coordinate value as specified by the user. There may be multiple Input values corresponding to a single coordinate (Coord as used by the plotting system.

Since:
12 Sep 2014
Author:
Mark Taylor

Constructor Summary
Input(InputMeta meta, Class valueClazz, Class<? extends DomainMapper> domain)
          Constructor.
 
Method Summary
 Class<? extends DomainMapper> getDomain()
          Returns the common value domain in which this user coordinate will be used.
 InputMeta getMeta()
          Returns user-directed metadata describing this input.
 Class getValueClass()
          Returns the data (super-)type of values described by this input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Input

public Input(InputMeta meta,
             Class valueClazz,
             Class<? extends DomainMapper> domain)
Constructor.

Parameters:
meta - user-directed metadata
valueClazz - data value class
domain - data value domain, may be null
Method Detail

getMeta

public InputMeta getMeta()
Returns user-directed metadata describing this input.

Returns:
metadata

getValueClass

public Class getValueClass()
Returns the data (super-)type of values described by this input.

Returns:
value data type

getDomain

public Class<? extends DomainMapper> getDomain()
Returns the common value domain in which this user coordinate will be used. The return value is a DomainMapper abstract sub-type. This sub-type effectively defines a target value domain. Null entries for this list are the norm, indicating that the user values will just be interpreted as numeric values, but a non-null domain value can be used if a particular interpretation (for instance time) is going to be imposed.

Returns:
domain mapper subtype, or null


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.