/// <summary> /// Add a service stop to the station /// </summary> /// <param name="stop">Service stop</param> public void Add(ScheduleLocation stop) { Timetable.AddService(stop); if (stop.IsAdvertised()) { TocServices.Add(stop.Schedule.Operator); } }
internal void AddService(ScheduleLocation stop) { if (stop is IArrival arrival && arrival.IsPublic) { _arrivals.AddService(new ArrivalServiceTime(arrival)); } if (stop is IDeparture departure && departure.IsPublic) { _departures.AddService(new DepartureServiceTime(departure)); } }
public ResolvedServiceStop(ResolvedService service, ScheduleLocation stop) { Service = service; Stop = new ResolvedStop(stop, service.On); ViaText = Stop.Stop.Station.GetViaText(Service.Details); }
public bool TryFindStop(StopSpecification find, out ScheduleLocation stop) { stop = Locations.FirstOrDefault(l => l.IsStopAt(find)); return(stop != default); }
internal void AddLocation(ScheduleLocation location) => _locations.Add(location);
public ResolvedStop(ScheduleLocation stop, DateTime on) { Stop = stop; On = on; }