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

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

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

import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.opentripplanner.model.StopTime;
import org.opentripplanner.transit.model.network.StopPattern;
import org.opentripplanner.transit.model.network.TripPattern;
import org.opentripplanner.transit.model.timetable.Trip;
import org.opentripplanner.transit.model.timetable.TripOnServiceDate;

/**
 * This mapper returnes two collections, so we need to use a simple wraper to be able to return the
 * result from the mapping method.
 */
class TripPatternMapperResult {

  /**
   * A map from trip/serviceJourney id to an ordered list of scheduled stop point ids.
   */
  final ArrayListMultimap scheduledStopPointsIndex = ArrayListMultimap.create();

  final Map> tripStopTimes = new HashMap<>();

  final Multimap tripPatterns = ArrayListMultimap.create();

  /**
   * stopTimes by the timetabled-passing-time id
   */
  final Map stopTimeByNetexId = new HashMap<>();

  final ArrayList tripOnServiceDates = new ArrayList<>();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy