cynosurex.geography
Class Coordinate

java.lang.Object
  extended by cynosurex.geography.Coordinate
All Implemented Interfaces:
cynosurex.internal.AuthorCommon, cynosurex.internal.CommonInterface, cynosurex.internal.CompanyCommon
Direct Known Subclasses:
Latitude, Longitude

public abstract class Coordinate
extends java.lang.Object
implements cynosurex.internal.CommonInterface


Field Summary
protected  int degree
          Specifies a value between -179 and 180 for longitude, and a value between -90 and 90 for latitude.
protected  int minute
          Specifies a value between 0 and 59.
static int MINUTE_MAX
           
static int MINUTE_MIN
           
protected  int second
          Specifies a value between 0 and 59.
static int SECOND_MAX
           
static int SECOND_MIN
           
 
Fields inherited from interface cynosurex.internal.CommonInterface
copyright, copyrightYears, notice, program, version
 
Fields inherited from interface cynosurex.internal.AuthorCommon
author, copyrightSymbol, noticeMsg, rights
 
Fields inherited from interface cynosurex.internal.CompanyCommon
company, email, website
 
Constructor Summary
Coordinate()
           
 
Method Summary
 int getDegree()
          Returns the degree field.
 int getMinute()
          Returns the minute field.
 int getSecond()
          Returns the second field.
 double getValue()
          Returns the degree with decimals.
abstract  void setDegree(int degree)
           
abstract  void setMinute(int minute)
           
abstract  void setSecond(int second)
           
abstract  void setValue(double value)
           
 void setValue(int degree, int minute, int second)
           
 java.lang.String toString()
          Returns a String object representing the instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MINUTE_MAX

public static final int MINUTE_MAX
See Also:
Constant Field Values

MINUTE_MIN

public static final int MINUTE_MIN
See Also:
Constant Field Values

SECOND_MAX

public static final int SECOND_MAX
See Also:
Constant Field Values

SECOND_MIN

public static final int SECOND_MIN
See Also:
Constant Field Values

degree

protected int degree
Specifies a value between -179 and 180 for longitude, and a value between -90 and 90 for latitude.


minute

protected int minute
Specifies a value between 0 and 59. The value 60 will be wrapped to 0, and degree will be incremented in the process.


second

protected int second
Specifies a value between 0 and 59. The value 60 will be wrapped to 0, and minute will be incremented in the process.

Constructor Detail

Coordinate

public Coordinate()
Method Detail

getDegree

public int getDegree()
Returns the degree field.


getMinute

public int getMinute()
Returns the minute field.


getSecond

public int getSecond()
Returns the second field.


getValue

public double getValue()
Returns the degree with decimals.


setValue

public void setValue(int degree,
                     int minute,
                     int second)

setValue

public abstract void setValue(double value)

setDegree

public abstract void setDegree(int degree)

setMinute

public abstract void setMinute(int minute)

setSecond

public abstract void setSecond(int second)

toString

public java.lang.String toString()
Returns a String object representing the instance.

Overrides:
toString in class java.lang.Object