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

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertex
      extended by org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertexWithEdges
          extended by org.onebusaway.transit_data_federation.impl.otp.graph.AbstractBlockVertex
All Implemented Interfaces:
Cloneable, HasStopTransitVertex, TransitVertex, org.opentripplanner.routing.core.HasEdges, org.opentripplanner.routing.core.Vertex
Direct Known Subclasses:
BlockArrivalVertex, BlockDepartureVertex

public abstract class AbstractBlockVertex
extends AbstractVertexWithEdges
implements HasStopTransitVertex


Field Summary
protected  ArrivalAndDepartureInstance _instance
           
 
Fields inherited from class org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertex
_context
 
Constructor Summary
AbstractBlockVertex(GraphContext context, ArrivalAndDepartureInstance instance)
           
 
Method Summary
 double distance(org.opentripplanner.routing.core.Vertex v)
           
 boolean equals(Object obj)
           
 ArrivalAndDepartureInstance getInstance()
           
 StopEntry getStop()
           
 org.onebusaway.gtfs.model.AgencyAndId getStopId()
           
 double getX()
           
 double getY()
           
 int hashCode()
          Object Interface
 
Methods inherited from class org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertexWithEdges
getDegreeIn, getDegreeOut, getIncoming, getOutgoing
 
Methods inherited from class org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertex
distance, getContext, getCoordinate, getDistanceToNearestTransitStop, getLabel, getName, setDistanceToNearestTransitStop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.onebusaway.transit_data_federation.impl.otp.graph.TransitVertex
getContext
 
Methods inherited from interface org.opentripplanner.routing.core.Vertex
toString
 

Field Detail

_instance

protected final ArrivalAndDepartureInstance _instance
Constructor Detail

AbstractBlockVertex

public AbstractBlockVertex(GraphContext context,
                           ArrivalAndDepartureInstance instance)
Method Detail

getInstance

public ArrivalAndDepartureInstance getInstance()

getStop

public StopEntry getStop()
Specified by:
getStop in interface HasStopTransitVertex

getStopId

public org.onebusaway.gtfs.model.AgencyAndId getStopId()
Specified by:
getStopId in interface org.opentripplanner.routing.core.Vertex
Overrides:
getStopId in class AbstractVertex

distance

public double distance(org.opentripplanner.routing.core.Vertex v)
Specified by:
distance in interface org.opentripplanner.routing.core.Vertex
Overrides:
distance in class AbstractVertex

getX

public double getX()
Specified by:
getX in interface org.opentripplanner.routing.core.Vertex

getY

public double getY()
Specified by:
getY in interface org.opentripplanner.routing.core.Vertex

hashCode

public int hashCode()
Object Interface

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.