trumania.components.time_patterns package¶
Submodules¶
trumania.components.time_patterns.profilers module¶
-
class
trumania.components.time_patterns.profilers.
DefaultDailyTimerGenerator
(clock, seed)[source]¶ Bases:
trumania.core.clock.CyclicTimerGenerator
Basic CyclicTimerGenerator with a one dat period with hourly weights vaguely inspired from
-
class
trumania.components.time_patterns.profilers.
HighWeekDaysTimerGenerator
(clock, seed)[source]¶ Bases:
trumania.core.clock.CyclicTimerGenerator
Basic CyclicTimerGenerator with a one week period that allocates higher probabilities to week-day vs week-ends
-
class
trumania.components.time_patterns.profilers.
WorkHoursTimerGenerator
(clock, seed, start_hour=9, end_hour=17)[source]¶ Bases:
trumania.core.clock.CyclicTimerGenerator
Basic CyclicTimerGenerator with a one week period that allocates uniform probabilities to work hours.
Work hours happen during week days (Monday to Friday), and between start_hour and end_hour, both included