Modelling and Analysis Using a Switching Stochastic Max-Plus Linear Model