Setting Cooperative Relations Among Terminals at Seaports Using a Multi-Agent System