org.onebusaway.transit_data_federation.model
Class ShapePoints
java.lang.Object
org.onebusaway.transit_data_federation.model.ShapePoints
- All Implemented Interfaces:
- Serializable
public class ShapePoints
- extends Object
- implements Serializable
A more memory efficient data structure for capturing a sequence of
ShapePoint
objects
- Author:
- bdferris
- See Also:
ShapePoint
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapePoints
public ShapePoints()
getSize
public int getSize()
isEmpty
public boolean isEmpty()
getShapeId
public org.onebusaway.gtfs.model.AgencyAndId getShapeId()
setShapeId
public void setShapeId(org.onebusaway.gtfs.model.AgencyAndId shapeId)
getLats
public double[] getLats()
setLats
public void setLats(double[] lat)
getLatForIndex
public double getLatForIndex(int index)
getLons
public double[] getLons()
setLons
public void setLons(double[] lon)
getLonForIndex
public double getLonForIndex(int index)
getDistTraveled
public double[] getDistTraveled()
setDistTraveled
public void setDistTraveled(double[] distTraveled)
getDistTraveledForIndex
public double getDistTraveledForIndex(int index)
getPointForIndex
public CoordinatePoint getPointForIndex(int index)
ensureDistTraveled
public void ensureDistTraveled()
Copyright © 2012 OneBusAway. All Rights Reserved.