Skip to content

move_agent

Tushar Semwal edited this page Oct 15, 2017 · 1 revision

Syntax:

move_agent(Agent_name,(Receiver_ip, Receiver_port)) 

Agent_name: <atom + >, Receiver_ip: <atom +>, Receiver_port: <integer +>

Description:

This predicate is used for mobility of agents the agent named Agent_name is moved to Receiver_ip and Receiver_port specified by a user. The predicate tries to move the agent if the movement fails then the agent is restarted at the same platform otherwise if the movement is successful then the agent code is retracted from the platform.

Example:

?- move_agent(myagent, (localhost,6767)).
Clone this wiki locally