A microsimulation model for real time management of port activities