org.onebusaway.transit_data_federation.impl.otp.graph
Class AbstractVertex
java.lang.Object
org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertex
- All Implemented Interfaces:
- Cloneable, TransitVertex, org.opentripplanner.routing.core.Vertex
- Direct Known Subclasses:
- AbstractStopVertex, AbstractVertexWithEdges
public abstract class AbstractVertex
- extends Object
- implements org.opentripplanner.routing.core.Vertex, TransitVertex
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opentripplanner.routing.core.Vertex |
getX, getY, toString |
_context
protected final GraphContext _context
AbstractVertex
public AbstractVertex(GraphContext context)
getContext
public GraphContext getContext()
- Specified by:
getContext
in interface TransitVertex
getLabel
public String getLabel()
- Specified by:
getLabel
in interface org.opentripplanner.routing.core.Vertex
getStopId
public org.onebusaway.gtfs.model.AgencyAndId getStopId()
- Specified by:
getStopId
in interface org.opentripplanner.routing.core.Vertex
distance
public double distance(org.opentripplanner.routing.core.Vertex v)
- Specified by:
distance
in interface org.opentripplanner.routing.core.Vertex
distance
public double distance(com.vividsolutions.jts.geom.Coordinate c)
- Specified by:
distance
in interface org.opentripplanner.routing.core.Vertex
getCoordinate
public com.vividsolutions.jts.geom.Coordinate getCoordinate()
- Specified by:
getCoordinate
in interface org.opentripplanner.routing.core.Vertex
getName
public String getName()
- Specified by:
getName
in interface org.opentripplanner.routing.core.Vertex
setDistanceToNearestTransitStop
public void setDistanceToNearestTransitStop(double distance)
- Specified by:
setDistanceToNearestTransitStop
in interface org.opentripplanner.routing.core.Vertex
getDistanceToNearestTransitStop
public double getDistanceToNearestTransitStop()
- Specified by:
getDistanceToNearestTransitStop
in interface org.opentripplanner.routing.core.Vertex
Copyright © 2012 OneBusAway. All Rights Reserved.