SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Modify examples.message.Ping.java
  2.  
  3. received parameter (examples.param.ParamAgent)
  4. 1) agent id
  5. 2) msg content (for example ping)
  6.  
  7. performative ACLMessage.REQUEST
  8.  
  9.  
  10. Modify examples.message.Pong.java
  11.  
  12. if content equal to ping (lowercase)
  13.   reply pong
  14.   ACLMessage.REQUEST
  15. else
  16.   reply "please send ping"
  17.   ACLMessage.REFUSE
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top