Modeling and analyzing complex reactive systems - The Statemate approach