Max-Min-Plus-Scaling Systems in a Discrete-Event Framework with an Application in Urban Railway