org.onebusaway.gtfs.model
Class ShapePoint

java.lang.Object
  extended by org.onebusaway.gtfs.model.IdentityBean<Integer>
      extended by org.onebusaway.gtfs.model.ShapePoint
All Implemented Interfaces:
Serializable, Comparable<ShapePoint>

public final class ShapePoint
extends IdentityBean<Integer>
implements Comparable<ShapePoint>

See Also:
Serialized Form

Field Summary
static double MISSING_VALUE
           
 
Constructor Summary
ShapePoint()
           
ShapePoint(ShapePoint shapePoint)
           
 
Method Summary
 void clearDistTraveled()
           
 int compareTo(ShapePoint o)
           
 double getDistTraveled()
           
 Integer getId()
           
 double getLat()
           
 double getLon()
           
 int getSequence()
           
 AgencyAndId getShapeId()
           
 boolean isDistTraveledSet()
           
 void setDistTraveled(double distTraveled)
           
 void setId(Integer id)
           
 void setLat(double lat)
           
 void setLon(double lon)
           
 void setSequence(int sequence)
           
 void setShapeId(AgencyAndId shapeId)
           
 String toString()
           
 
Methods inherited from class org.onebusaway.gtfs.model.IdentityBean
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MISSING_VALUE

public static final double MISSING_VALUE
See Also:
Constant Field Values
Constructor Detail

ShapePoint

public ShapePoint()

ShapePoint

public ShapePoint(ShapePoint shapePoint)
Method Detail

getId

public Integer getId()
Specified by:
getId in class IdentityBean<Integer>

setId

public void setId(Integer id)
Specified by:
setId in class IdentityBean<Integer>

getShapeId

public AgencyAndId getShapeId()

setShapeId

public void setShapeId(AgencyAndId shapeId)

getSequence

public int getSequence()

setSequence

public void setSequence(int sequence)

isDistTraveledSet

public boolean isDistTraveledSet()

getDistTraveled

public double getDistTraveled()
Returns:
the distance traveled along the shape path. If no distance was specified, the value is undefined. Check first with isDistTraveledSet()

setDistTraveled

public void setDistTraveled(double distTraveled)

clearDistTraveled

public void clearDistTraveled()

getLat

public double getLat()

setLat

public void setLat(double lat)

getLon

public double getLon()

setLon

public void setLon(double lon)

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


Copyright © 2011 OneBusAway. All Rights Reserved.