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

org.onebusaway.gtfs.services.GtfsDao Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
package org.onebusaway.gtfs.services;

import java.util.Collection;

import org.onebusaway.gtfs.model.Agency;
import org.onebusaway.gtfs.model.AgencyAndId;
import org.onebusaway.gtfs.model.FareAttribute;
import org.onebusaway.gtfs.model.FareRule;
import org.onebusaway.gtfs.model.Frequency;
import org.onebusaway.gtfs.model.Pathway;
import org.onebusaway.gtfs.model.Route;
import org.onebusaway.gtfs.model.ServiceCalendar;
import org.onebusaway.gtfs.model.ServiceCalendarDate;
import org.onebusaway.gtfs.model.ShapePoint;
import org.onebusaway.gtfs.model.Stop;
import org.onebusaway.gtfs.model.StopTime;
import org.onebusaway.gtfs.model.Transfer;
import org.onebusaway.gtfs.model.Trip;

/**
 * Basic methods for accessing GTFS entities in bulk or by id.
 * 
 * @author bdferris
 */
public interface GtfsDao extends GenericDao {
  
  /****
   * Agency Methods
   ****/

  public Collection getAllAgencies();

  public Agency getAgencyForId(String id);

  /****
   * {@link ServiceCalendar} Methods
   ****/

  public Collection getAllCalendars();

  public ServiceCalendar getCalendarForId(int id);

  /****
   * {@link ServiceCalendarDate} Methods
   ****/

  public Collection getAllCalendarDates();

  public ServiceCalendarDate getCalendarDateForId(int id);
  
  /****
   * {@link FareAttribute} Methods
   ****/
  
  public Collection getAllFareAttributes();
  
  public FareAttribute getFareAttributeForId(AgencyAndId id);
  
  /****
   * {@link FareRule} Methods
   ***/
  
  public Collection getAllFareRules();
  
  public FareRule getFareRuleForId(int id);
  
  /****
   * {@link Frequency} Methods
   ****/
  
  public Collection getAllFrequencies();
  
  public Frequency getFrequencyForId(int id);

  /****
   * {@link Pathway} Methods
   ****/

  public Collection getAllPathways();

  public Pathway getPathwayForId(AgencyAndId id);

  /****
   * {@link Route} Methods
   ****/

  public Collection getAllRoutes();

  public Route getRouteForId(AgencyAndId id);
  
  /****
   * {@link ShapePoint} Methods
   ****/

  public Collection getAllShapePoints();

  public ShapePoint getShapePointForId(int id);

  /****
   * {@link Stop} Methods
   ****/

  public Collection getAllStops();

  public Stop getStopForId(AgencyAndId id);

  /****
   * {@link StopTime} Methods
   ****/

  public Collection getAllStopTimes();

  public StopTime getStopTimeForId(int id);
  
  /****
   * {@link Transfer} Methods
   ****/
  
  public Collection getAllTransfers();
  
  public Transfer getTransferForId(int id);
  
  /****
   * {@link Trip} Methods
   ****/

  public Collection getAllTrips();

  public Trip getTripForId(AgencyAndId id);


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy