Class TripModel

java.lang.Object
com.nnamo.models.TripModel

public class TripModel extends Object
Represents a trip of a route (e.g., the 8:00 run of line 163).
  • 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 identifier
      route - the route associated with the trip
      serviceId - the service identifier
      headsign - the headsign indicating direction
      direction - the direction of the trip
  • Method Details

    • getId

      public String getId()
      Gets the trip identifier.
      Returns:
      the trip ID
    • getRoute

      public RouteModel getRoute()
      Gets the route associated with this trip.
      Returns:
      the RouteModel
    • getHeadsign

      public String getHeadsign()
      Gets the headsign indicating the direction of the trip.
      Returns:
      the headsign
    • getDirection

      public Direction getDirection()
      Gets the direction of the trip.
      Returns:
      the Direction
    • getServiceId

      public String getServiceId()
      Gets the service identifier for the trip.
      Returns:
      the service ID