Modeling and simulation of discrete events systems : the study of the hydrologic behavior of a catchment basi