ilog.cpl.network
Class IlpGeographicPosition

java.lang.Object
  extended by ilog.cpl.network.IlpGeographicPosition
All Implemented Interfaces:
IlpPosition

public class IlpGeographicPosition
extends Object
implements IlpPosition

This class describes a point on the surface of the earth, identified by longitude and latitude information.

Example: The position of Washington is new IlpGeographicPosition("39D11'N","76D51'W").

Glossary: latitude/longitude.

Note:

Since:
JTGO 3.0
See Also:
IlpGeographicPositionConverter, IlvProjectionUtil, IlvCoordinateTransformationException

Constructor Summary
IlpGeographicPosition(String latitude, String longitude)
          Creates a geographic position.
 
Method Summary
 boolean equals(Object other)
          Compares this object with another object.
 String getLatitude()
          Returns the latitude.
 String getLongitude()
          Returns the longitude.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlpGeographicPosition

public IlpGeographicPosition(String latitude,
                             String longitude)
Creates a geographic position.

Method Detail

getLatitude

public String getLatitude()
Returns the latitude. It is zero for points on the equator.


getLongitude

public String getLongitude()
Returns the longitude. It is zero for points on the Greenwich line.


equals

public boolean equals(Object other)
Compares this object with another object. Two IlpGeographicPosition instances are considered equal if their respective latitudes and longitudes are equal.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.