Package org.onebusaway.gtfs.model
Class ShapePoint
- java.lang.Object
-
- org.onebusaway.gtfs.model.IdentityBean<Integer>
-
- org.onebusaway.gtfs.model.ShapePoint
-
- All Implemented Interfaces:
Serializable,Comparable<ShapePoint>,org.onebusaway.csv_entities.HasExtensions
public final class ShapePoint extends IdentityBean<Integer> implements Comparable<ShapePoint>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static doubleMISSING_VALUE
-
Constructor Summary
Constructors Constructor Description ShapePoint()ShapePoint(ShapePoint shapePoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDistTraveled()intcompareTo(ShapePoint o)doublegetDistTraveled()IntegergetId()doublegetLat()doublegetLon()ShapePointProxygetProxy()intgetSequence()AgencyAndIdgetShapeId()booleanisDistTraveledSet()voidsetDistTraveled(double distTraveled)voidsetId(Integer id)voidsetLat(double lat)voidsetLon(double lon)voidsetProxy(ShapePointProxy proxy)When set, all interactions with the shape point will be redirected through this proxy.voidsetSequence(int sequence)voidsetShapeId(AgencyAndId shapeId)StringtoString()-
Methods inherited from class org.onebusaway.gtfs.model.IdentityBean
equals, getExtension, hashCode, putExtension
-
-
-
-
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:
getIdin classIdentityBean<Integer>
-
setId
public void setId(Integer id)
- Specified by:
setIdin classIdentityBean<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()
-
compareTo
public int compareTo(ShapePoint o)
- Specified by:
compareToin interfaceComparable<ShapePoint>
-
-