ucar.nc2.dataset
Class CoordinateTransform

java.lang.Object
  extended by ucar.nc2.dataset.CoordinateTransform
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
ProjectionCT, VerticalCT

public class CoordinateTransform
extends java.lang.Object
implements java.lang.Comparable

A CoordinateTransform is an abstraction of a function from a CoordinateSystem to a "reference" CoordinateSystem, such as lat, lon.

Version:
$Revision:51 $ $Date:2006-07-12 17:13:13Z $
Author:
caron

Field Summary
protected  java.lang.String authority
           
protected  java.lang.String id
           
protected  java.lang.String name
           
protected  java.util.ArrayList params
           
protected  TransformType transformType
           
 
Constructor Summary
CoordinateTransform(java.lang.String name, java.lang.String authority, TransformType transformType)
          Create a Coordinate Transform.
 
Method Summary
 void addParameter(Parameter param)
          add a parameter
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object oo)
          Instances which have same name, authority and parameters are equal.
 Parameter findParameterIgnoreCase(java.lang.String name)
          Convenience function; look up Parameter by name, ignoring case.
 java.lang.String getAuthority()
          get the naming authority
 java.lang.String getName()
          get the name
 java.util.ArrayList getParameters()
          get list of ProjectionParameter objects.
 TransformType getTransformType()
          get the transform type
 int hashCode()
          Override Object.hashCode() to be consistent with equals.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

authority

protected java.lang.String authority

transformType

protected TransformType transformType

params

protected java.util.ArrayList params

id

protected java.lang.String id
Constructor Detail

CoordinateTransform

public CoordinateTransform(java.lang.String name,
                           java.lang.String authority,
                           TransformType transformType)
Create a Coordinate Transform.

Parameters:
name - name of transform, must be unique within the NcML.
authority - naming authority
transformType - type of transform.
Method Detail

addParameter

public void addParameter(Parameter param)
add a parameter


getName

public java.lang.String getName()
get the name


getAuthority

public java.lang.String getAuthority()
get the naming authority


getTransformType

public TransformType getTransformType()
get the transform type


getParameters

public java.util.ArrayList getParameters()
get list of ProjectionParameter objects.


findParameterIgnoreCase

public Parameter findParameterIgnoreCase(java.lang.String name)
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

public boolean equals(java.lang.Object oo)
Instances which have same name, authority and parameters are equal.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Override Object.hashCode() to be consistent with equals.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable