org.onebusaway.transit_data_federation.impl.otp.graph
Class AbstractVertex

java.lang.Object
  extended by 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


Field Summary
protected  GraphContext _context
           
 
Constructor Summary
AbstractVertex(GraphContext context)
           
 
Method Summary
 double distance(com.vividsolutions.jts.geom.Coordinate c)
           
 double distance(org.opentripplanner.routing.core.Vertex v)
           
 GraphContext getContext()
           
 com.vividsolutions.jts.geom.Coordinate getCoordinate()
           
 double getDistanceToNearestTransitStop()
           
 String getLabel()
           
 String getName()
           
 org.onebusaway.gtfs.model.AgencyAndId getStopId()
           
 void setDistanceToNearestTransitStop(double distance)
           
 
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
 

Field Detail

_context

protected final GraphContext _context
Constructor Detail

AbstractVertex

public AbstractVertex(GraphContext context)
Method Detail

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 © 2011 OneBusAway. All Rights Reserved.