A class of piecewise deterministic Markov processes