Represents a detail for an ATR which contains information about
the number of accidents in a specific year.
Represents the AtrTable's Msg.
Returns a Tuple containing the Config and a possible batch of side effects to
be managed by parent application. Requires a list of AtrDetail.
Updates the configuration of the Atr table. Returns a tuple containing the new Config.
Creates an empty AtrDetail.
Each detail is identified by an year and representation of accidents occurred
during it. All setters methods are pipeable.
Sets the Responsabilità Paritaria value for a specific AtrDetail.
Sets the Responsabilità Paritaria Mista value for a specific AtrDetail.
Sets the Responsabilità Paritaria Cose value for a specific AtrDetail.
Sets the Responsabilità Paritaria Persone value for a specific AtrDetail.
Sets the Responsabilità Principale value for a specific AtrDetail.
Sets the Responsabilità Principale Mista value for a specific AtrDetail.
Sets the Responsabilità Principale Cose value for a specific AtrDetail.
Sets the Responsabilità Principale Persone value for a specific AtrDetail.
Renders the table by receiving a Configuration. The columns of this table are expressed by the length of the AtrDetail list.
Defines the configuration of an Atr table