public class FloatingCoord extends SingleCoord
Modifier and Type | Field and Description |
---|---|
static FloatingCoord |
WEIGHT_COORD
Coordinate instance used for weighting values.
|
Modifier and Type | Method and Description |
---|---|
static FloatingCoord |
createCoord(InputMeta meta,
boolean isRequired)
Factory method to return an instance of this class.
|
static FloatingCoord |
createTimeCoord(InputMeta meta,
boolean isRequired)
Returns a new time coordinate.
|
java.util.function.Function<Object[],Number> |
inputStorage(ValueInfo[] infos,
DomainMapper[] dms)
Provides a function to turn a quantity in the user view to
a plotting view object.
|
double |
readDoubleCoord(Tuple tuple,
int icol)
Reads a floating point value from an appropriate field
in a given Tuple.
|
getInput, getInputs, getStorageType, isRequired, toString
public static FloatingCoord WEIGHT_COORD
public java.util.function.Function<Object[],Number> inputStorage(ValueInfo[] infos, DomainMapper[] dms)
Coord
The supplied infos
and domainMappers
arrays correspond to
(have the same length as) this object's Inputs array,
and may influence the return values. However, Coord instances
that always behave the same way (for instance whose Input Domains
have fixed DomainMappers) are free to ignore these arguments.
The returned function converts an array of per-input user values
to a storable object of the type corresponding to the result of
Coord.getStorageType()
; the return value of the returned function
is never null.
infos
- per-input array of column input metadatadms
- per-input array of input value->domain value
mapperspublic double readDoubleCoord(Tuple tuple, int icol)
tuple
- tupleicol
- index of column in tuple corresponding to this Coordpublic static FloatingCoord createCoord(InputMeta meta, boolean isRequired)
PlotUtil.storeFullPrecision()
method.meta
- input value metadataisRequired
- true if this coordinate is required for plottingpublic static FloatingCoord createTimeCoord(InputMeta meta, boolean isRequired)
meta
- input value metadataisRequired
- true if this coordinate is required for plottingCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.