org.onebusaway.transit_data_federation.impl.shapes
Class PointAndIndex

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.shapes.PointAndIndex
All Implemented Interfaces:
Comparable<PointAndIndex>

public class PointAndIndex
extends Object
implements Comparable<PointAndIndex>


Field Summary
 double distanceAlongShape
           
 double distanceFromTarget
           
 int index
           
 XYPoint point
           
 
Constructor Summary
PointAndIndex(XYPoint point, int index, double distanceFromTarget, double distanceAlongShape)
           
 
Method Summary
 int compareTo(PointAndIndex o)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

point

public final XYPoint point

index

public final int index

distanceFromTarget

public final double distanceFromTarget

distanceAlongShape

public final double distanceAlongShape
Constructor Detail

PointAndIndex

public PointAndIndex(XYPoint point,
                     int index,
                     double distanceFromTarget,
                     double distanceAlongShape)
Method Detail

compareTo

public int compareTo(PointAndIndex o)
Specified by:
compareTo in interface Comparable<PointAndIndex>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.