Class ServiceModel

java.lang.Object
com.nnamo.models.ServiceModel

public class ServiceModel extends Object
Table that specifies dates when a trip exception occurs (trip added or deleted for that date). It is specified by GTFS
  • Constructor Details

    • ServiceModel

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

      public ServiceModel(String service_id, Date date, int exception_type)
      Constructs a ServiceModel with the specified service ID, date, and exception type.
      Parameters:
      service_id - the service identifier
      date - the date of the exception
      exception_type - the exception type (1 for added, 2 for deleted)
  • Method Details

    • getServiceId

      public String getServiceId()
      Gets the service identifier.
      Returns:
      the service ID
    • getDate

      public Date getDate()
      Gets the date of the exception.
      Returns:
      the date
    • getExceptionType

      public ServiceModel.ExceptionType getExceptionType()
      Gets the exception type as an enum.
      Returns:
      the exception type