finalynx.simulator.recurrence
Module Contents
Classes
Abstract class to define how often an Event should be triggered. |
|
Program an action to happen every few days/months/years. |
|
Program an action to happen every nth day of the month. |
API
- class finalynx.simulator.recurrence.RecurrenceBase(until: Optional[datetime.date] = None)[source]
Abstract class to define how often an Event should be triggered.
Initialization
- class finalynx.simulator.recurrence.DeltaRecurrence(days: Optional[int] = None, months: Optional[int] = None, years: Optional[int] = None, until: Optional[datetime.date] = None)[source]
Bases:
finalynx.simulator.recurrence.RecurrenceBase
Program an action to happen every few days/months/years.
Initialization
- class finalynx.simulator.recurrence.MonthlyRecurrence(day_of_the_month: int, n_months: int = 1, until: Optional[datetime.date] = None)[source]
Bases:
finalynx.simulator.recurrence.RecurrenceBase
Program an action to happen every nth day of the month.
Initialization
Program an action to happen every nth day of the month.
- Parameters:
n_months – Optionally skip some months.