Ubimedic2: An Agent-Based Approach in Territorial Emergence Management