org.onebusaway.transit_data_federation.impl.shapes
Class AbstractShapePointIndex

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.shapes.AbstractShapePointIndex
All Implemented Interfaces:
ShapePointIndex
Direct Known Subclasses:
DistanceTraveledShapePointIndex, FirstShapePointIndex, LastShapePointIndex, LocationShapePointIndex

public abstract class AbstractShapePointIndex
extends Object
implements ShapePointIndex


Constructor Summary
AbstractShapePointIndex()
           
 
Method Summary
protected  double computeOrientation(ShapePoints shapePoints, int indexFrom, int indexTo)
           
protected  PointAndOrientation computePointAndOrientation(ShapePoints shapePoints, int pointIndex, int orientationIndexFrom, int orientationIndexTo)
           
 CoordinatePoint getPoint(ShapePoints points)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.onebusaway.transit_data_federation.impl.shapes.ShapePointIndex
getIndex, getPointAndOrientation
 

Constructor Detail

AbstractShapePointIndex

public AbstractShapePointIndex()
Method Detail

getPoint

public CoordinatePoint getPoint(ShapePoints points)
Specified by:
getPoint in interface ShapePointIndex

computePointAndOrientation

protected PointAndOrientation computePointAndOrientation(ShapePoints shapePoints,
                                                         int pointIndex,
                                                         int orientationIndexFrom,
                                                         int orientationIndexTo)

computeOrientation

protected double computeOrientation(ShapePoints shapePoints,
                                    int indexFrom,
                                    int indexTo)


Copyright © 2011 OneBusAway. All Rights Reserved.