org.onebusaway.transit_data_federation.impl.otp.graph.tp
Class TPBlockDepartureVertex

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.tp.TPBlockDepartureVertex
All Implemented Interfaces:
Cloneable, HasStopTransitVertex, SearchLocal, HasPathStateVertex, TransitVertex, org.opentripplanner.routing.core.HasEdges, org.opentripplanner.routing.core.Vertex

public class TPBlockDepartureVertex
extends AbstractVertexWithEdges
implements SearchLocal


Field Summary
protected  boolean _isDeparture
           
protected  TPState _pathState
           
 
Fields inherited from class org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertex
_context
 
Constructor Summary
TPBlockDepartureVertex(GraphContext context, TPState pathState, ArrivalAndDepartureInstance departure, ArrivalAndDepartureInstance arrival)
           
 
Method Summary
 boolean equals(Object obj)
           
 ArrivalAndDepartureInstance getArrival()
           
 ArrivalAndDepartureInstance getDeparture()
           
 Collection<org.opentripplanner.routing.core.Edge> getIncoming()
          HasEdges Interface
 Collection<org.opentripplanner.routing.core.Edge> getOutgoing()
           
 TPState getPathState()
           
<T> T
getSearchLocalValue()
          Search Local
 StopEntry getStop()
          HasStopTransitVertex Interface
 double getX()
          Vertex Interface
 double getY()
           
 int hashCode()
           
 boolean isDeparture()
           
<T> void
setSearchLocalValue(T value)
           
 String toString()
           
 
Methods inherited from class org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertexWithEdges
getDegreeIn, getDegreeOut
 
Methods inherited from class org.onebusaway.transit_data_federation.impl.otp.graph.AbstractVertex
distance, distance, getContext, getCoordinate, getDistanceToNearestTransitStop, getLabel, getName, getStopId, setDistanceToNearestTransitStop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.onebusaway.transit_data_federation.impl.otp.graph.TransitVertex
getContext
 

Field Detail

_pathState

protected final TPState _pathState

_isDeparture

protected final boolean _isDeparture
Constructor Detail

TPBlockDepartureVertex

public TPBlockDepartureVertex(GraphContext context,
                              TPState pathState,
                              ArrivalAndDepartureInstance departure,
                              ArrivalAndDepartureInstance arrival)
Method Detail

getDeparture

public ArrivalAndDepartureInstance getDeparture()

getArrival

public ArrivalAndDepartureInstance getArrival()

getIncoming

public Collection<org.opentripplanner.routing.core.Edge> getIncoming()
HasEdges Interface

Specified by:
getIncoming in interface org.opentripplanner.routing.core.HasEdges
Overrides:
getIncoming in class AbstractVertexWithEdges

getOutgoing

public Collection<org.opentripplanner.routing.core.Edge> getOutgoing()
Specified by:
getOutgoing in interface org.opentripplanner.routing.core.HasEdges
Overrides:
getOutgoing in class AbstractVertexWithEdges

toString

public String toString()
Specified by:
toString in interface org.opentripplanner.routing.core.Vertex
Overrides:
toString in class Object

getSearchLocalValue

public <T> T getSearchLocalValue()
Search Local

Specified by:
getSearchLocalValue in interface SearchLocal

setSearchLocalValue

public <T> void setSearchLocalValue(T value)
Specified by:
setSearchLocalValue in interface SearchLocal

getPathState

public TPState getPathState()
Specified by:
getPathState in interface HasPathStateVertex

isDeparture

public boolean isDeparture()
Specified by:
isDeparture in interface HasPathStateVertex

getX

public double getX()
Vertex Interface

Specified by:
getX in interface org.opentripplanner.routing.core.Vertex

getY

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

getStop

public StopEntry getStop()
HasStopTransitVertex Interface

Specified by:
getStop in interface HasStopTransitVertex

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2012 OneBusAway. All Rights Reserved.