org.onebusaway.transit_data_federation.model
Class ShapePoints

java.lang.Object
  extended by 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

Constructor Summary
ShapePoints()
           
 
Method Summary
 void ensureDistTraveled()
           
 double[] getDistTraveled()
           
 double getDistTraveledForIndex(int index)
           
 double getLatForIndex(int index)
           
 double[] getLats()
           
 double getLonForIndex(int index)
           
 double[] getLons()
           
 CoordinatePoint getPointForIndex(int index)
           
 org.onebusaway.gtfs.model.AgencyAndId getShapeId()
           
 int getSize()
           
 boolean isEmpty()
           
 void setDistTraveled(double[] distTraveled)
           
 void setLats(double[] lat)
           
 void setLons(double[] lon)
           
 void setShapeId(org.onebusaway.gtfs.model.AgencyAndId shapeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapePoints

public ShapePoints()
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.