Dynamic behaviour of lagoon ecosystems