Agent based Modelling and Simulation using State Machines In Proceedings of the 2nd International Conference on Simulation and Modeling Methodologies, Technologies and Applications SIMULTECH - Volume 1, 270-279, 2012 , Rome, Italy