Class RouteModel

java.lang.Object
com.nnamo.models.RouteModel

public class RouteModel extends Object
Represents a GTFS route entity. Used with ORMLite for database persistence.
  • Constructor Details

    • RouteModel

      public RouteModel()
      Empty constructor required by OrmLite.
    • RouteModel

      public RouteModel(String id, AgencyModel agency, String longName, String shortName, RouteType routeType)
      Constructs a RouteModel with all fields.
      Parameters:
      id - the route ID
      agency - the agency
      longName - the long name
      shortName - the short name
      routeType - the route type
  • Method Details

    • getId

      public String getId()
      Gets the route ID.
      Returns:
      the route ID
    • getLongName

      public String getLongName()
      Gets the long name of the route.
      Returns:
      the long name
    • getShortName

      public String getShortName()
      Gets the short name of the route.
      Returns:
      the short name
    • getAgency

      public AgencyModel getAgency()
      Gets the agency associated with the route.
      Returns:
      the agency
    • getType

      public RouteType getType()
      Gets the route type.
      Returns:
      the route type