org.onebusaway.gtfs.model
Class ShapePoint

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

public final class ShapePoint
extends IdentityBean<java.lang.Integer>
implements java.lang.Comparable<ShapePoint>

See Also:
Serialized Form

Constructor Summary
ShapePoint()
           
ShapePoint(ShapePoint shapePoint)
           
 
Method Summary
 int compareTo(ShapePoint o)
           
 double getDistTraveled()
           
 java.lang.Integer getId()
           
 double getLat()
           
 double getLon()
           
 int getSequence()
           
 AgencyAndId getShapeId()
           
 boolean isDistTraveledSet()
           
 void setDistTraveled(double distTraveled)
           
 void setId(java.lang.Integer id)
           
 void setLat(double lat)
           
 void setLon(double lon)
           
 void setSequence(int sequence)
           
 void setShapeId(AgencyAndId shapeId)
           
 java.lang.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
 

Constructor Detail

ShapePoint

public ShapePoint()

ShapePoint

public ShapePoint(ShapePoint shapePoint)
Method Detail

getId

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

setId

public void setId(java.lang.Integer id)
Specified by:
setId in class IdentityBean<java.lang.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)

getLat

public double getLat()

setLat

public void setLat(double lat)

getLon

public double getLon()

setLon

public void setLon(double lon)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

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


Copyright © 2010 OneBusAway. All Rights Reserved.