This paper addresses the problem of implementing an context model. First, the abstract context model is represented by a network of situations. Two different implementations for the situation model are then proposed: a deterministic one based on Petri nets and a probabilistic one based on Hidden Markov Models. Both implementations are illustrated and applied to real-world problems.