Jadex 0.941

jadex.testcases.plans
Agent PingBinding


agent PingBinding

Tests binding values for a plan.

Reacts on "ping" query-ref and sends back inform "alive" because it is the first suitable value from the binding values set.


Plan Summary
standard plan ping(String reply)
          
standard plan printer(int num)
          
 
Event Summary
exported messageevent inform_alive(String performative)
          
messageevent query_ref_ping(String content, String performative)
          
 
Initial State Summary
default initial state  default
          
 

Plan Detail

ping

standard plan ping(String reply)
Parameters:
in parameter reply Binding options:  new String[]{"alive", "alaaf"}
Plan body:
new PingPlan("ping", $plan.reply)
Message event trigger:
query_ref_ping

printer

standard plan printer(int num)
Parameters:
in parameter num Default value:  0
Plan body:
new ResultPlan(new Integer($plan.num))
Event Detail

query_ref_ping

messageevent query_ref_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
meta-level reasoning: true
post to all: true

inform_alive

exported messageevent inform_alive(String performative)
Parameters:
fixed parameter performative Default value:  SFipa.INFORM
Event flags:
direction: send_receive
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false
Initial State Detail

default

default initial state default
Initial Plans:
printer

Jadex 0.941

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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.