-
Notifications
You must be signed in to change notification settings - Fork 7
move_agent
Tushar Semwal edited this page Oct 15, 2017
·
1 revision
move_agent(Agent_name,(Receiver_ip, Receiver_port))
Agent_name: <atom + >, Receiver_ip: <atom +>, Receiver_port: <integer +>
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.
?- move_agent(myagent, (localhost,6767)).