Frequency
Type CDM 7.2.0A class for defining a date frequency, e.g. one day, three months, through the combination of an integer value and a standardized period value that is specified as part of an enumeration.
Attributes
All 2 declared on Frequency. Cardinality in amber is required.
| Name | Type | Card. | Description |
|---|---|---|---|
| periodMultiplier | int | 1..1 | A time period multiplier, e.g. 1, 2, or 3. If the period value is T (Term) then period multiplier must contain the value 1. |
| period | PeriodExtendedEnum | 1..1 | A time period, e.g. a day, week, month, year or term of the stream. |
Conditions
Validation rules the model enforces on this type, in Rune. An instance that breaks one of these is invalid CDM, whatever produced it.
if period = PeriodExtendedEnum -> T then periodMultiplier = 1 periodMultiplier > 0 Referenced by
2 types hold a Frequency as an attribute.
Functions
Model functions that produce or consume this type. These are the CDM's own behaviour — the logic a correct implementation has to match.
| Function | Role | Description |
|---|---|---|
| MapPeriodToFrequency | returns | — |
| MapFrequency | returns | — |
| AddPeriodToDate | takes | Adds a frequency-based period to a date, adjusting for leap years. Month periods are considered as 30 days (31st month-end days are not handled). |
Open Frequency in the Model Browser
Walk the tree and the reference graph interactively, and switch releases to see how the type has changed. Free, no signup.