|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.network.IlpGeographicPolyPoints
ilog.cpl.network.IlpGeographicPolyline
public class IlpGeographicPolyline
This class describes a polyline on the earth's surface, given a set of longitude and latitude,where the starting point and the end point are not necessarily the same.
| Constructor Summary | |
|---|---|
IlpGeographicPolyline(IlpGeographicPosition[] positions)
Creates a new IlpGeographicPolyline instance, connecting given
points. |
|
| Method Summary | |
|---|---|
IlpGeographicPosition |
getFrom()
Returns the starting point of the polyline. |
int |
getNumberOfPoints()
Returns the number of points in the polyline. |
IlpGeographicPosition |
getPoint(int index)
Returns a specific point (0 <= index < getNumberOfPoints()). |
IlpGeographicPosition[] |
getPoints()
Returns the array of points. |
IlpGeographicPosition |
getPosition(int index)
Deprecated. Please use getPoint instead. |
IlpGeographicPosition[] |
getPositions()
Deprecated. Please use getPoints instead. |
IlpGeographicPosition |
getTo()
Returns the end point of the polyline. |
| Methods inherited from class ilog.cpl.network.IlpGeographicPolyPoints |
|---|
equals, hashCode, setPositions, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpGeographicPolyline(IlpGeographicPosition[] positions)
IlpGeographicPolyline instance, connecting given
points.
positions - A non-empty array of points.| Method Detail |
|---|
public IlpGeographicPosition getFrom()
public IlpGeographicPosition getTo()
public int getNumberOfPoints()
getNumberOfPoints in class IlpGeographicPolyPointspublic IlpGeographicPosition getPoint(int index)
public IlpGeographicPosition getPosition(int index)
getPoint instead.
getPosition in class IlpGeographicPolyPointspublic IlpGeographicPosition[] getPoints()
public IlpGeographicPosition[] getPositions()
getPoints instead.
getPositions in class IlpGeographicPolyPoints
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||