-
public final class BusScheduleA BusSchedule has the departure times for a line and a BusCalendar indicating when the schedule is active.
There are 2 Lists containing departure times:
inboundTimes contains departure times for inbound routes
outboundTimes contains departure times for outbound routes
Both lists are sorted.
For the exact definition of inbound and outbound see org.teogramm.oasth.base.RouteTypes. Lines with circular routes contain entries only in the outboundTimes List.
-
-
Field Summary
Fields Modifier and Type Field Description private final BusCalendarcalendarprivate final List<LocalTime>outboundTimesprivate final List<LocalTime>inboundTimes
-
Constructor Summary
Constructors Constructor Description BusSchedule(BusCalendar calendar, List<LocalTime> outboundTimes, List<LocalTime> inboundTimes)
-
Method Summary
Modifier and Type Method Description final BusCalendarcomponent1()final List<LocalTime>component2()final List<LocalTime>component3()final BusSchedulecopy(BusCalendar calendar, List<LocalTime> outboundTimes, List<LocalTime> inboundTimes)final BusCalendargetCalendar()final List<LocalTime>getOutboundTimes()final List<LocalTime>getInboundTimes()-
-
Constructor Detail
-
BusSchedule
BusSchedule(BusCalendar calendar, List<LocalTime> outboundTimes, List<LocalTime> inboundTimes)
-
-
Method Detail
-
component1
final BusCalendar component1()
-
component2
final List<LocalTime> component2()
-
component3
final List<LocalTime> component3()
-
copy
final BusSchedule copy(BusCalendar calendar, List<LocalTime> outboundTimes, List<LocalTime> inboundTimes)
-
getCalendar
final BusCalendar getCalendar()
-
getOutboundTimes
final List<LocalTime> getOutboundTimes()
-
getInboundTimes
final List<LocalTime> getInboundTimes()
-
-
-
-