integrity.check-methods: Internal method to ensure model integrity

Description See Also

Description

This method is called each time you access a slot by <slot>. It checks the state of internal integrity flags in order to guarantee, that the slot you want to access has a value, consistent with the rest of the model.
For example, if you run crp.CSFP (complete calculation of the model), then change loss.unit by loss.unit(MyModel)<-... to another value (which causes a call to set.changes ) and want to access EL.crp, a warning message is printed because you did not recalculate EL.crp. Instead you have to run calc.portfolio.statistics, loss.dist and measure again to get the right value for EL.crp.

See Also

crp.CSFP-class, crp.CSFP,


crp.CSFP documentation built on May 1, 2019, 8:50 p.m.