-
Notifications
You must be signed in to change notification settings - Fork 7
list_agent
Tushar Semwal edited this page Oct 15, 2017
·
1 revision
list_agent. % Lists all the agent in the current platform. %
This predicate lists all agents existing in the current platform along with details of the agent viz. - its name, handler and port number on which agent resides. In case of a mobile agent, the port number will be same as the platform port number in which it currently resides.
?- list_agent.
The output on the platform terminal in:
================Agent list==========================================
Agent Name :agent1, handler name:mobileagent1, residing on port:5658 Agent Name :agent2, handler name:mobileagent2, residing on port:5658 Agent Name :agent3, handler name:staticagent1, residing on port:5659
===================================================================
true.