public class GTFSPatternHopFactory extends Object
Modifier and Type | Field and Description |
---|---|
int |
maxInterlineDistance |
static int |
PARENT_STATION_LOCATION_TYPE |
static int |
STOP_LOCATION_TYPE |
int |
subwayAccessTime |
Constructor and Description |
---|
GTFSPatternHopFactory() |
GTFSPatternHopFactory(GtfsContext context) |
Modifier and Type | Method and Description |
---|---|
void |
createParentStationTransfers()
Create bidirectional, "free" edges (zero-time, low-cost edges) between stops and their
parent stations.
|
void |
createTransfersTxtTransfers()
Create transfer edges between stops which are listed in transfers.txt.
|
double |
getMaxStopToShapeSnapDistance() |
void |
linkStopsToParentStations(Graph graph)
Links the vertices representing parent stops to their child stops bidirectionally.
|
void |
run(Graph graph)
Generate the edges.
|
void |
setFareServiceFactory(FareServiceFactory fareServiceFactory) |
void |
setMaxStopToShapeSnapDistance(double maxStopToShapeSnapDistance) |
void |
setStopContext(GtfsStopContext context) |
public static final int STOP_LOCATION_TYPE
public static final int PARENT_STATION_LOCATION_TYPE
public int subwayAccessTime
public int maxInterlineDistance
public GTFSPatternHopFactory(GtfsContext context)
public GTFSPatternHopFactory()
public void run(Graph graph)
public void setFareServiceFactory(FareServiceFactory fareServiceFactory)
public void createParentStationTransfers()
public void linkStopsToParentStations(Graph graph)
public void createTransfersTxtTransfers()
public void setStopContext(GtfsStopContext context)
public double getMaxStopToShapeSnapDistance()
public void setMaxStopToShapeSnapDistance(double maxStopToShapeSnapDistance)
Copyright © 2018. All rights reserved.