A Probabilistic Model for the Management of a Tram Fleet