public class ConvertToFrequency extends Modification
Modifier and Type | Class and Description |
---|---|
static class |
ConvertToFrequency.ConversionGroup |
Modifier and Type | Field and Description |
---|---|
List<FrequencyEntry> |
frequencyEntries |
ConvertToFrequency.ConversionGroup |
groupBy
How to group trips for conversion to frequencies: by route, route and direction, or by trip pattern.
|
String[] |
routeId |
List<TripTimes> |
scheduledTrips |
int |
windowEnd |
int |
windowStart
Windows in which to do the conversion, array of int[2] of startTimeSecs, endTimeSecs
|
warnings
Constructor and Description |
---|
ConvertToFrequency() |
Modifier and Type | Method and Description |
---|---|
void |
apply(List<FrequencyEntry> frequencyEntries,
List<TripTimes> scheduledTrips,
Graph graph,
BitSet servicesRunning,
RaptorWorkerTimetable.BoardingAssumption assumption) |
String |
getType()
Distinguish between modification types when a list of Modifications are serialized out as JSON.
|
setType
public List<FrequencyEntry> frequencyEntries
public String[] routeId
public int windowStart
public int windowEnd
public ConvertToFrequency.ConversionGroup groupBy
public String getType()
Modification
getType
in class Modification
public void apply(List<FrequencyEntry> frequencyEntries, List<TripTimes> scheduledTrips, Graph graph, BitSet servicesRunning, RaptorWorkerTimetable.BoardingAssumption assumption)
Copyright © 2019. All rights reserved.