org.onebusaway.transit_data_federation.services.transit_graph
Class ServiceIdActivation
java.lang.Object
org.onebusaway.transit_data_federation.services.transit_graph.ServiceIdActivation
- All Implemented Interfaces:
- Serializable, Comparable<ServiceIdActivation>
public class ServiceIdActivation
- extends Object
- implements Serializable, Comparable<ServiceIdActivation>
Models a collection of active and inactive LocalizedServiceId
. Useful
for modeling which service ids are active for a particular block of trips,
thereby determining the set of trips active for a particular block on a given
service date.
- Author:
- bdferris
- See Also:
BlockConfigurationEntry
,
ExtendedCalendarService
,
Serialized Form
Constructor Summary |
ServiceIdActivation(List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> activeServiceIds,
List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> inactiveServiceIds)
|
ServiceIdActivation(org.onebusaway.gtfs.model.calendar.LocalizedServiceId serviceId)
|
ServiceIdActivation
public ServiceIdActivation(org.onebusaway.gtfs.model.calendar.LocalizedServiceId serviceId)
ServiceIdActivation
public ServiceIdActivation(List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> activeServiceIds,
List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> inactiveServiceIds)
getActiveServiceIds
public List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> getActiveServiceIds()
getInactiveServiceIds
public List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> getInactiveServiceIds()
getTimeZone
public TimeZone getTimeZone()
compareTo
public int compareTo(ServiceIdActivation o)
Comparable
Interface
- Specified by:
compareTo
in interface Comparable<ServiceIdActivation>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 OneBusAway. All Rights Reserved.