Package com.nnamo.models
Class ServiceModel
java.lang.Object
com.nnamo.models.ServiceModel
Table that specifies dates when a trip exception occurs (trip added or
deleted for that date). It is specified by GTFS
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum representing possible exception types. -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required by OrmLite.ServiceModel
(String service_id, Date date, int exception_type) Constructs a ServiceModel with the specified service ID, date, and exception type. -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
Gets the date of the exception.Gets the exception type as an enum.Gets the service identifier.
-
Constructor Details
-
ServiceModel
public ServiceModel()Empty constructor required by OrmLite. -
ServiceModel
Constructs a ServiceModel with the specified service ID, date, and exception type.- Parameters:
service_id
- the service identifierdate
- the date of the exceptionexception_type
- the exception type (1 for added, 2 for deleted)
-
-
Method Details
-
getServiceId
Gets the service identifier.- Returns:
- the service ID
-
getDate
Gets the date of the exception.- Returns:
- the date
-
getExceptionType
Gets the exception type as an enum.- Returns:
- the exception type
-