-
Notifications
You must be signed in to change notification settings - Fork 7
get_new_name
Tushar Semwal edited this page Oct 15, 2017
·
1 revision
get_new_name(Agent_name, New_agent_name) % Generates a new name for an agent %
Agent_name: <atom + >, New_agent_name: <atom - >
This predicate is used for generating a unique name for an agent. The names generated by this predicate are of form <Agent_name><random number>_<IP>_<Port>
. The returned value is assigned in the variable New_agent_name.
?- get_new_name(agenta,X)
The output is:
?- X = agenta1_localhost_5658.