Package com.nnamo.models
Class RouteModel
java.lang.Object
com.nnamo.models.RouteModel
Represents a GTFS route entity.
Used with ORMLite for database persistence.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required by OrmLite.RouteModel
(String id, AgencyModel agency, String longName, String shortName, RouteType routeType) Constructs a RouteModel with all fields. -
Method Summary
-
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 IDagency
- the agencylongName
- the long nameshortName
- the short namerouteType
- the route type
-
-
Method Details
-
getId
Gets the route ID.- Returns:
- the route ID
-
getLongName
Gets the long name of the route.- Returns:
- the long name
-
getShortName
Gets the short name of the route.- Returns:
- the short name
-
getAgency
Gets the agency associated with the route.- Returns:
- the agency
-
getType
Gets the route type.- Returns:
- the route type
-