Skip to content

clone_agent

Tushar Semwal edited this page Oct 15, 2017 · 2 revisions

Syntax:

clone_agent(Agent_name, (Destination_IP, Destination_Port), Clone_name). 

Agent_name1: <atom +>, Destination_ip: <atom + >, Destination_port: <integer +> Agent_name2: <atom ->

Clones the designated agent at a specified platform and confers it a new name.

Description:

This predicate is used for cloning of agents. The agent named Agent_name is cloned at Destination_IP and Destination_Port address specified by the user. The clone’s name is returned in the variable Clone_name.

Example:

?- clone_agent(myagent,(localhost,5656),Clone_name). % Clone_name = myagent.
Clone this wiki locally