org.onebusaway.transit_data_federation.services.transit_graph
Class ServiceIdActivation

java.lang.Object
  extended by 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)
           
 
Method Summary
 int compareTo(ServiceIdActivation o)
          Comparable Interface
 boolean equals(Object obj)
           
 List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> getActiveServiceIds()
           
 List<org.onebusaway.gtfs.model.calendar.LocalizedServiceId> getInactiveServiceIds()
           
 TimeZone getTimeZone()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.