Class AgencyServiceInterval
- java.lang.Object
-
- org.onebusaway.gtfs.model.calendar.AgencyServiceInterval
-
- All Implemented Interfaces:
Serializable
public class AgencyServiceInterval extends Object implements Serializable
Represent a service interval (a period of defined transit both scheduled and dynamic) that exists on a given service date and window relative to that date. The times may differ based on the specified agency. The net effect is that the period of consideration can be smaller for more frequent service (such as a subway/BRT provider) vs a traditional fixed bus service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSECONDS_IN_DAY
-
Constructor Summary
Constructors Constructor Description AgencyServiceInterval(long referenceTime)AgencyServiceInterval(long referenceTime, Map<String,Integer> agencyIdOverrides)AgencyServiceInterval(ServiceDate serviceDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)DategetFrom(String agencyId)ServiceDategetServiceDate()ServiceIntervalgetServiceInterval(String agencyId)DategetTo(String agencyId)inthashCode()
-
-
-
Field Detail
-
SECONDS_IN_DAY
public static final int SECONDS_IN_DAY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AgencyServiceInterval
public AgencyServiceInterval(long referenceTime)
-
AgencyServiceInterval
public AgencyServiceInterval(ServiceDate serviceDate)
-
-
Method Detail
-
getServiceDate
public ServiceDate getServiceDate()
-
getServiceInterval
public ServiceInterval getServiceInterval(String agencyId)
-
-