public class TransferRule extends Modification
Modifier and Type | Field and Description |
---|---|
RaptorWorkerTimetable.BoardingAssumption |
assumption
The boarding assumption to use for matched transfers
|
int[] |
fromMode
From GTFS modes; note constants in Route
|
String |
stop
Stop label; if null will be applied to all stops.
|
int[] |
toMode
To GTFS modes
|
Integer |
transferTimeSeconds
The transfer time in seconds; only applied if assumption == FIXED.
|
Double |
waitProportion
The proportion of the headway to apply when transferring, when assumption = PROPORTION.
|
warnings
Constructor and Description |
---|
TransferRule() |
Modifier and Type | Method and Description |
---|---|
String |
getType()
Distinguish between modification types when a list of Modifications are serialized out as JSON.
|
boolean |
matches(RaptorWorkerTimetable from,
RaptorWorkerTimetable to) |
setType
public RaptorWorkerTimetable.BoardingAssumption assumption
public int[] fromMode
public int[] toMode
public String stop
public Integer transferTimeSeconds
public Double waitProportion
public String getType()
Modification
getType
in class Modification
public boolean matches(RaptorWorkerTimetable from, RaptorWorkerTimetable to)
Copyright © 2019. All rights reserved.