Package com.nnamo.models
Class TripModel
java.lang.Object
com.nnamo.models.TripModel
Represents a trip of a route (e.g., the 8:00 run of line 163).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TripModel
public TripModel()Empty constructor required by OrmLite. -
TripModel
public TripModel(String id, RouteModel route, String serviceId, String headsign, Direction direction) Constructs a TripModel with the specified parameters.- Parameters:
id
- the trip identifierroute
- the route associated with the tripserviceId
- the service identifierheadsign
- the headsign indicating directiondirection
- the direction of the trip
-
-
Method Details
-
getId
Gets the trip identifier.- Returns:
- the trip ID
-
getRoute
Gets the route associated with this trip.- Returns:
- the RouteModel
-
getHeadsign
Gets the headsign indicating the direction of the trip.- Returns:
- the headsign
-
getDirection
Gets the direction of the trip.- Returns:
- the Direction
-
getServiceId
Gets the service identifier for the trip.- Returns:
- the service ID
-