MCPcopy Create free account
hub / github.com/comaps/comaps / GetFrequency

Method GetFrequency

libs/transit/transit_schedule.cpp:305–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305Frequency FrequencyIntervals::GetFrequency(Time const & time) const
306{
307 for (auto const & [interval, freq] : m_intervals)
308 if (interval.GetTimeStatus(time) == Status::Open)
309 return freq;
310
311 return kDefaultFrequency;
312}
313
314std::map<TimeInterval, Frequency> const & FrequencyIntervals::GetFrequencies() const
315{

Callers 3

UNIT_TESTFunction · 0.45
ScheduleToJsonFunction · 0.45
GetTransferPenaltyMethod · 0.45

Calls 3

GetTimeStatusMethod · 0.80
GetExceptionStatusMethod · 0.80
GetStatusInIntervalMethod · 0.80

Tested by 1

UNIT_TESTFunction · 0.36