public class GraphPath extends Object
Modifier and Type | Field and Description |
---|---|
LinkedList<Edge> |
edges |
LinkedList<State> |
states |
Constructor and Description |
---|
GraphPath(State s,
boolean optimize)
Construct a GraphPath based on the given state by following back-edge fields all the way back
to the origin of the search.
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Private Methods
|
void |
dumpPathParser() |
boolean |
equals(Object o)
Two paths are equal if they use the same ordered list of trips
|
int |
getDuration()
Returns the duration of the trip in seconds.
|
long |
getEndTime()
Returns the end time of the trip in seconds since the epoch.
|
Vertex |
getEndVertex() |
RoutingContext |
getRoutingContext() |
long |
getStartTime()
Returns the start time of the trip in seconds since the epoch.
|
Vertex |
getStartVertex() |
List<org.onebusaway.gtfs.model.AgencyAndId> |
getTrips() |
double |
getWalkDistance() |
double |
getWeight() |
int |
hashCode() |
String |
toString() |
public LinkedList<State> states
public LinkedList<Edge> edges
public GraphPath(State s, boolean optimize)
s
- - the state for which a path is requestedoptimize
- - whether excess waiting time should be removedoptions
- - the traverse options used to reach this statepublic long getStartTime()
public long getEndTime()
public int getDuration()
public double getWeight()
public Vertex getStartVertex()
public Vertex getEndVertex()
public List<org.onebusaway.gtfs.model.AgencyAndId> getTrips()
public boolean equals(Object o)
public void dump()
public void dumpPathParser()
public double getWalkDistance()
public RoutingContext getRoutingContext()
Copyright © 2018. All rights reserved.