Jadex 0.96

jadex.examples.ping.mobile
Agent Ping


agent Ping

Ping Agent for answering ping requests.

Reacts on "ping" query-ref and sends back inform "alive".


Plan Summary
mobile plan ping()
          
 
Event Summary
messageevent inform(String performative)
          
messageevent query_ping(String content, String performative)
          
 

Plan Detail

ping

mobile plan ping()
Plan body:
new PingPlan("ping", "alive")
Plan trigger:
Message events:
query_ping
Event Detail

query_ping

messageevent query_ping(String content, 
                        String performative)
Parameters:
in parameter content Default value:  "ping"
fixed parameter performative Default value:  SFipa.QUERY_REF
Event flags:
direction: receive
message type: fipa
random selection: false
post to all: false

inform

messageevent inform(String performative)
Parameters:
fixed parameter performative Default value:  SFipa.INFORM
Event flags:
direction: send
message type: fipa
random selection: false
post to all: false

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.