The definition of a model framework for managing rail systems in the case of breakdowns