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

org.opentripplanner.model.OtpTransitService Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.model;

import com.google.common.collect.Multimap;
import java.util.Collection;
import java.util.List;
import org.opentripplanner.ext.flex.trip.FlexTrip;
import org.opentripplanner.model.transfer.ConstrainedTransfer;

/**
 * Methods for accessing imported entities.
 */
public interface OtpTransitService {

    /**
     * @return  a list of all Agencies.
     */
    Collection getAllAgencies();

    /**
     * @return a list of all Operators, the list may be empty if there are no Operators in the imported data.
     */
    Collection getAllOperators();

    Collection getAllFareAttributes();

    Collection getAllFareRules();

    Collection getAllFeedInfos();

    Collection getAllGroupsOfStations();

    Collection getAllMultiModalStations();

    /**
     * This is equivalent to a Transmodel Notice Assignments. The map key may reference entity ids of
     * any type (Serializable).
     */
    Multimap getNoticeAssignments();

    Collection getAllPathways();

    /**
     * @return all ids for both Calendars and CalendarDates merged into on list without duplicates.
     */
    Collection getAllServiceIds();

    List getShapePointsForShapeId(FeedScopedId shapeId);

    Station getStationForId(FeedScopedId id);

    Stop getStopForId(FeedScopedId id);

    Collection getAllStations();

    Collection getAllStops();

    Collection getAllEntrances();

    Collection getAllPathwayNodes();

    Collection getAllBoardingAreas();

    Collection getAllLocations();

    Collection getAllLocationGroups();

    /**
     * @return the list of {@link StopTime} objects associated with the trip,
     * sorted by {@link StopTime#getStopSequence()}
     */
    List getStopTimesForTrip(Trip trip);

    Collection getAllTransfers();

    Collection getTripPatterns();

    Collection getAllTrips();

    Collection getAllFlexTrips();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy