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 |
getCallAndRideDuration()
Return the total duration, in seconds, of call-and-ride legs used in a trip plan.
|
List<FeedScopedId> |
getCallAndRideTrips()
Get all trips used in the search which were call-and-ride 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() |
org.locationtech.jts.geom.LineString |
getGeometry() |
RoutingContext |
getRoutingContext() |
long |
getStartTime()
Returns the start time of the trip in seconds since the epoch.
|
Vertex |
getStartVertex() |
List<FeedScopedId> |
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<FeedScopedId> getTrips()
public boolean equals(Object o)
public void dump()
public void dumpPathParser()
public double getWalkDistance()
public RoutingContext getRoutingContext()
public org.locationtech.jts.geom.LineString getGeometry()
public int getCallAndRideDuration()
public List<FeedScopedId> getCallAndRideTrips()
Copyright © 2019. All rights reserved.