ilog.cpl.network
Class IlpGeographicPolygon

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

public class IlpGeographicPolygon
extends IlpGeographicPolyPoints

This class describes a polygon on the earth's surface, given a set of longitude and latitude.

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

Glossary: latitude/longitude.

Since:
JTGO 3.0
See Also:
IlpGeographicPositionConverter

Constructor Summary
IlpGeographicPolygon(IlpGeographicPosition[] positions)
          Creates a geographic position.
 
Method Summary
 int getNumberOfPoints()
          Returns the number of points in the polygon.
 IlpGeographicPosition getPoint(int index)
          Returns a specific point (0 <= index < getNumberOfPoints()).
 IlpGeographicPosition[] getPoints()
          Returns the array of points.
 
Methods inherited from class ilog.cpl.network.IlpGeographicPolyPoints
equals, getPosition, getPositions, hashCode, setPositions, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlpGeographicPolygon

public IlpGeographicPolygon(IlpGeographicPosition[] positions)
Creates a geographic position.

Method Detail

getNumberOfPoints

public int getNumberOfPoints()
Returns the number of points in the polygon.

Specified by:
getNumberOfPoints in class IlpGeographicPolyPoints
Returns:
The number of points

getPoint

public IlpGeographicPosition getPoint(int index)
Returns a specific point (0 <= index < getNumberOfPoints()). The point should not be modified.


getPoints

public IlpGeographicPosition[] getPoints()
Returns the array of points. Neither the array nor the points contained therein should be modified.



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