public class ServiceDay extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
midnight |
protected ServiceDate |
serviceDate |
protected BitSet |
serviceIdsRunning |
Constructor and Description |
---|
ServiceDay(Graph graph,
long time,
CalendarService cs,
String agencyId) |
ServiceDay(Graph graph,
ServiceDate serviceDate,
CalendarService cs,
String agencyId) |
ServiceDay(Graph graph,
ServiceDate serviceDate,
CalendarService cs,
TimeZone timeZone) |
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) |
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 ServiceDate serviceDate
protected BitSet serviceIdsRunning
public ServiceDay(Graph graph, long time, CalendarService cs, String agencyId)
public ServiceDay(Graph graph, ServiceDate serviceDate, CalendarService cs, String agencyId)
public ServiceDay(Graph graph, ServiceDate serviceDate, CalendarService cs, TimeZone timeZone)
public boolean serviceRunning(int serviceCode)
public boolean anyServiceRunning(BitSet serviceCodes)
public ServiceDate getServiceDate()
public int secondsSinceMidnight(long time)
public long time(int secondsSinceMidnight)
Copyright © 2019. All rights reserved.