ilog.cpl.network
Class IlpGeographicPolyPoints

java.lang.Object
  extended by ilog.cpl.network.IlpGeographicPolyPoints
All Implemented Interfaces:
IlpPosition
Direct Known Subclasses:
IlpGeographicPolygon, IlpGeographicPolyline

public abstract class IlpGeographicPolyPoints
extends Object
implements IlpPosition

An instance of this class describes a sequence IlpGeographicPosition.

Subclasses are:

Since:
JTGO 3.0

Constructor Summary
protected IlpGeographicPolyPoints()
          Note that _numsegments can validly be 0.
 
Method Summary
 boolean equals(Object other)
          Compares this object with another object.
abstract  int getNumberOfPoints()
          Returns the number of points in the polyline.
 IlpGeographicPosition getPosition(int index)
          Returns a specific point (0 <= index < getNumberOfPoints()).
 IlpGeographicPosition[] getPositions()
          Returns the array of points.
 int hashCode()
           
protected  void setPositions(IlpGeographicPosition[] pos)
          Sets the array of points.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlpGeographicPolyPoints

protected IlpGeographicPolyPoints()
Note that _numsegments can validly be 0. For IlpPolyline, this is valid if and only if _from == _to.

Method Detail

getNumberOfPoints

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

Returns:
The number of points

getPosition

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


getPositions

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


setPositions

protected void setPositions(IlpGeographicPosition[] pos)
Sets the array of points.

Since:
JViews 7.5

equals

public boolean equals(Object other)
Compares this object with another object. Two IlpGeographicPolyline instances are considered equal if all their segments and endpoints (if any) are the same.

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.