Tutorial Note on Agent-based Modeling and Simulation: Application to Diffusion Models In Proceedings of GEODIFF 2013 - Volume 0VISIGRAPP, 46-55, 2013 , Barcelona, Spain