Class ShapePoint

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

public final class ShapePoint extends IdentityBean<Integer> implements Comparable<ShapePoint>
See Also:
  • Field Details

  • Constructor Details

    • ShapePoint

      public ShapePoint()
    • ShapePoint

      public ShapePoint(ShapePoint shapePoint)
  • Method Details

    • 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)
    • setProxy

      public void setProxy(ShapePointProxy proxy)
      When set, all interactions with the shape point will be redirected through this proxy.
      Parameters:
      proxy -
    • getProxy

      public ShapePointProxy getProxy()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

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