All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.netex.mapping.StopTimesMapperResult Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.netex.mapping;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.opentripplanner.model.StopTime;

/**
 * Keep a list of stop times and the stopTimes by the timetabled-passing-time id.
 */
class StopTimesMapperResult {

  /**
   * stopTimes by the timetabled-passing-time id
   */
  final Map stopTimeByNetexId = new HashMap<>();
  final List stopTimes = new ArrayList<>();
  /**
   * A ordered list of scheduled stop point ids for all timetable stop points in the order of the
   * time-table-passing-times.
   */
  List scheduledStopPointIds;

  void addStopTime(String timetabledPassingTimeId, StopTime stopTime) {
    stopTimeByNetexId.put(timetabledPassingTimeId, stopTime);
    stopTimes.add(stopTime);
  }

  void setScheduledStopPointIds(List scheduledStopPointIds) {
    this.scheduledStopPointIds = scheduledStopPointIds;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy