我想在两个代理之间(在不同平台中,例如在代理1和代理2之间开发协议:
1.Agent1 send a message to Agent2 with a nonce
2.Agent2 receive the nonce, make a mathematic operation and then send to Agent1
3.Agent1 receive the message and sent Agent2 an ACK
所以我想创建一个名为doProtocol(Location destiny,int nonce)的函数,并自动执行该过程
我知道如何发送或接收消息,但我找不到同时进行的方法任何人都可以帮助我吗?
我将使用FIPA-RequestInteraction。