integrity.check: Internal method to ensure model integrity
Description
This method is called each time you access a slot by . 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.