public class TransferEdge extends Edge
Edge.ValidVertexTypes
Constructor and Description |
---|
TransferEdge(TransitStationStop fromv,
TransitStationStop tov,
double distance) |
TransferEdge(TransitStationStop fromv,
TransitStationStop tov,
double distance,
int time)
Creates a new Transfer edge.
|
Modifier and Type | Method and Description |
---|---|
String |
getDirection()
Get a direction on paths where it matters, or null
|
double |
getDistance() |
org.locationtech.jts.geom.LineString |
getGeometry() |
TraverseMode |
getMode() |
String |
getName()
Gets english localized name
|
String |
getName(Locale locale)
Gets wanted localization
|
boolean |
isWheelchairAccessible() |
void |
setGeometry(org.locationtech.jts.geom.LineString geometry) |
void |
setWheelchairAccessible(boolean wheelchairAccessible) |
State |
traverse(State s0)
Traverse this edge.
|
getAzimuth, getDisplayGeometry, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hasBogusName, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, optimisticTraverse, timeLowerBound, toString, vertexTypesValid, weightLowerBound
public TransferEdge(TransitStationStop fromv, TransitStationStop tov, double distance)
Transfer(Vertex, Vertex, double, int)
public TransferEdge(TransitStationStop fromv, TransitStationStop tov, double distance, int time)
fromv
- the Vertex where the transfer originatestov
- the Vertex where the transfer endsdistance
- the distance in meters from the origin Vertex to the destinationtime
- the minimum time in seconds it takes to complete this transferpublic String getDirection()
Edge
getDirection
in class Edge
public double getDistance()
getDistance
in class Edge
public org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public TraverseMode getMode()
public String getName(Locale locale)
Edge
public void setGeometry(org.locationtech.jts.geom.LineString geometry)
public void setWheelchairAccessible(boolean wheelchairAccessible)
public boolean isWheelchairAccessible()
Copyright © 2019. All rights reserved.