public class ServiceDay extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
midnight |
protected org.onebusaway.gtfs.model.calendar.ServiceDate |
serviceDate |
protected BitSet |
serviceIdsRunning |
Constructor and Description |
---|
ServiceDay(Graph graph,
long time,
org.onebusaway.gtfs.services.calendar.CalendarService cs,
String agencyId) |
ServiceDay(Graph graph,
org.onebusaway.gtfs.model.calendar.ServiceDate serviceDate,
org.onebusaway.gtfs.services.calendar.CalendarService cs,
String agencyId) |
Modifier and Type | Method and Description |
---|---|
boolean |
anyServiceRunning(BitSet serviceCodes)
Do any of the services for this set of service codes run on this ServiceDay?
|
boolean |
equals(Object o) |
org.onebusaway.gtfs.model.calendar.ServiceDate |
getServiceDate()
Return the ServiceDate for this ServiceDay.
|
int |
hashCode() |
int |
secondsSinceMidnight(long time) |
boolean |
serviceRunning(int serviceCode)
Does the given serviceId run on this ServiceDay?
|
long |
time(int secondsSinceMidnight) |
String |
toString() |
protected long midnight
protected org.onebusaway.gtfs.model.calendar.ServiceDate serviceDate
protected BitSet serviceIdsRunning
public ServiceDay(Graph graph, long time, org.onebusaway.gtfs.services.calendar.CalendarService cs, String agencyId)
public boolean serviceRunning(int serviceCode)
public boolean anyServiceRunning(BitSet serviceCodes)
public org.onebusaway.gtfs.model.calendar.ServiceDate getServiceDate()
public int secondsSinceMidnight(long time)
public long time(int secondsSinceMidnight)
Copyright © 2018. All rights reserved.