public class DefaultPiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement> extends DefaultDomain1D<T> implements PiecewiseTransform1D<T>
PiecewiseTransform1D
interface which subclass the DefaultDomain1D
class in order to provide a
suitable framework to handle a list of PiecewiseTransform1DElement
s.
modCount
Constructor and Description |
---|
DefaultPiecewiseTransform1D(T[] domainElements) |
DefaultPiecewiseTransform1D(T[] domainElements,
double defaultValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares the specified object with this domain element list for equality.
|
double |
getDefaultValue()
The default value which will be returned when asked to transform a value outside the valid domain elements.
|
protected Class<?> |
getEquivalenceClass() |
int |
getSourceDimensions()
Gets the dimension of input points, which is 1.
|
int |
getTargetDimensions()
Gets the dimension of output points, which is 1.
|
boolean |
hasDefaultValue()
Indicates whether or not this
PiecewiseTransform1D has a default value which will be returned when asked to transform a value outside
the valid domain elements. |
int |
hashCode() |
double |
transform(double value)
Transforms the specified value.
|
Position |
transform(Position ptSrc,
Position ptDst) |
findDomainElement, get, getApproximateDomainRange, getMain, getMinimums, getName, hasGaps, size, toArray
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findDomainElement, getApproximateDomainRange, getName, hasGaps
public DefaultPiecewiseTransform1D(T[] domainElements, double defaultValue)
public DefaultPiecewiseTransform1D(T[] domainElements)
public double transform(double value) throws TransformationException
PiecewiseTransform1D
transform
in interface PiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement>
value
- The value to transform.TransformationException
- if the value can't be transformed.public final int getSourceDimensions()
public final int getTargetDimensions()
public Position transform(Position ptSrc, Position ptDst) throws TransformationException
TransformationException
public boolean hasDefaultValue()
PiecewiseTransform1D
PiecewiseTransform1D
has a default value which will be returned when asked to transform a value outside
the valid domain elements.hasDefaultValue
in interface PiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement>
boolean
to indicate whether or not this PiecewiseTransform1D
has a default value.public double getDefaultValue()
PiecewiseTransform1D
In case PiecewiseTransform1D.hasDefaultValue()
return false
this value has no meaning.
getDefaultValue
in interface PiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement>
public int hashCode()
hashCode
in interface Collection<T extends DefaultPiecewiseTransform1DElement>
hashCode
in interface List<T extends DefaultPiecewiseTransform1DElement>
hashCode
in class DefaultDomain1D<T extends DefaultPiecewiseTransform1DElement>
public boolean equals(Object object)
DefaultDomain1D
DefaultDomain1D
class, then the test check for the equality of the single elements.equals
in interface Collection<T extends DefaultPiecewiseTransform1DElement>
equals
in interface List<T extends DefaultPiecewiseTransform1DElement>
equals
in class DefaultDomain1D<T extends DefaultPiecewiseTransform1DElement>
protected Class<?> getEquivalenceClass()
getEquivalenceClass
in class DefaultDomain1D<T extends DefaultPiecewiseTransform1DElement>
Copyright © 2006–2017 GeoSolutions. All rights reserved.