org.jscience.geography.coordinates
Class Coord

java.lang.Object
  extended by org.jscience.geography.coordinates.Coord
All Implemented Interfaces:
java.lang.Cloneable, Coordinates
Direct Known Subclasses:
Coord2D, Coord3D, CoordSurf

public abstract class Coord
extends java.lang.Object
implements Coordinates, java.lang.Cloneable

The Coord abstract class is the base class for all coordinate types. Coordinates can be allocated on the stack, by using "new", or by using the SRF class methods.

See Also:
Coord2D, Coord3D

Constructor Summary
protected Coord(BaseSRF assocSRF, org.jscience.geography.coordinates.Coord_ClassType type)
          Creates a new Coord object.
 
Method Summary
 org.jscience.geography.coordinates.Coord_ClassType getClassType()
          DOCUMENT ME!
 BaseSRF getSRF()
          DOCUMENT ME!
abstract  double[] getValues()
          DOCUMENT ME!
abstract  boolean isEqual(Coord coord)
          DOCUMENT ME!
 Coord makeClone()
          DOCUMENT ME!
abstract  java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coord

protected Coord(BaseSRF assocSRF,
                org.jscience.geography.coordinates.Coord_ClassType type)
Creates a new Coord object.

Parameters:
assocSRF - DOCUMENT ME!
type - DOCUMENT ME!
Method Detail

getSRF

public BaseSRF getSRF()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValues

public abstract double[] getValues()
DOCUMENT ME!

Specified by:
getValues in interface Coordinates
Returns:
DOCUMENT ME!

getClassType

public org.jscience.geography.coordinates.Coord_ClassType getClassType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

makeClone

public Coord makeClone()
                throws SrmException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
SrmException - DOCUMENT ME!

isEqual

public abstract boolean isEqual(Coord coord)
DOCUMENT ME!

Parameters:
coord - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public abstract java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!