Package ucar.nc2.dataset
Class CoordinateTransform
java.lang.Object
ucar.nc2.dataset.CoordinateTransform
- All Implemented Interfaces:
Comparable<CoordinateTransform>
- Direct Known Subclasses:
ProjectionCT,VerticalCT
@ThreadSafe
public class CoordinateTransform
extends Object
implements Comparable<CoordinateTransform>
A CoordinateTransform is an abstraction of a function from a CoordinateSystem to a
"reference" CoordinateSystem.
CoordinateTransform is the superclass for ProjectionCT and VerticalCT.
It contains the Attributes/Parameters needed to make a "Coordinate Transform Variable" which
is just a container for the Transform parameters.
LOOK this should be abstract.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionCoordinateTransform(String name, String authority, TransformType transformType) Deprecated.Use CoordinateTransform.builder() -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(ucar.unidata.util.Parameter param) Deprecated.Use CoordinateTransform.builder()static CoordinateTransform.Builder<?>builder()Get Builder for this class that allows subclassing.intbooleanInstances which have same name, authority and parameters are equal.ucar.unidata.util.ParameterConvenience function; look up Parameter by name, ignoring case.getName()com.google.common.collect.ImmutableList<ucar.unidata.util.Parameter>inthashCode()Override Object.hashCode() to be consistent with equals.toString()
-
Constructor Details
-
CoordinateTransform
Deprecated.Use CoordinateTransform.builder()Create a Coordinate Transform.- Parameters:
name- name of transform, must be unique within the NcML.authority- naming authoritytransformType- type of transform.
-
-
Method Details
-
addParameter
Deprecated.Use CoordinateTransform.builder()add a parameter- Parameters:
param- add this Parameter
-
getName
-
getAttributeContainer
-
getAuthority
-
getTransformType
-
getParameters
public com.google.common.collect.ImmutableList<ucar.unidata.util.Parameter> getParameters() -
findParameterIgnoreCase
Convenience function; look up Parameter by name, ignoring case.- Parameters:
name- the name of the attribute- Returns:
- the Attribute, or null if not found
-
equals
Instances which have same name, authority and parameters are equal. -
hashCode
public int hashCode()Override Object.hashCode() to be consistent with equals. -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<CoordinateTransform>
-
toBuilder
-
builder
Get Builder for this class that allows subclassing.- See Also:
-
- "https://community.oracle.com/blogs/emcmanus/2010/10/24/using-builder-pattern-subclasses"
-