Jadex 0.941

jadex.testcases.capabilities
Agent DynamicCapability


agent DynamicCapability

Test if a capability can be added at runtime.

DynamicCapabilityAgent An agent that adds itself a new capability at runtime. Also creates a beliefset reference to access a beliefset of the included capability.

Usage: Use e.g. the conversation center to send request messages to this agent.

  1. "translate english_german dog" -> no message event matches
  2. "add capability" (adds a translation capability)
  3. "translate english_german dog" -> sends back an inform with dog - Hund
  4. "remove capability" (removes the translation capability)
  5. "translate english_german dog" -> no message event matches

Use the BDIViewer to observe how the capability and the beliefset reference get added and removed.


Plan Summary
standard plan addcap()
          
standard plan notunderstood()
           Reacts on all messages that can not be handled by the the translation plan.
standard plan removecap()
          
 
Event Summary
messageevent any_message()
           All messages can be also mapped to a any_message, when no more specific mapping can be found.
messageevent not_understood(String performative)
          
messageevent request_add_capability(String content-start, String performative)
          
messageevent request_remove_capability(String content-start, String performative)
          
 

Plan Detail

addcap

standard plan addcap()
Plan body:
new AddCapabilityPlan()
Message event trigger:
request_add_capability

removecap

standard plan removecap()
Plan body:
new RemoveCapabilityPlan()
Message event trigger:
request_remove_capability

notunderstood

standard plan notunderstood()
Reacts on all messages that can not be handled by the the translation plan.

Plan body:
new NotUnderstoodPlan()
Message event trigger:
any_message
Event Detail

request_add_capability

messageevent request_add_capability(String content-start, 
                                    String performative)
Parameters:
fixed parameter content-start Default value:  "add capability"
fixed parameter performative Default value:  SFipa.REQUEST
Event flags:
direction: receive
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false

request_remove_capability

messageevent request_remove_capability(String content-start, 
                                       String performative)
Parameters:
fixed parameter content-start Default value:  "remove capability"
fixed parameter performative Default value:  SFipa.REQUEST
Event flags:
direction: receive
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false

any_message

messageevent any_message()
All messages can be also mapped to a any_message, when no more specific mapping can be found.

Event flags:
direction: receive
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false

not_understood

messageevent not_understood(String performative)
Parameters:
fixed parameter performative Default value:  SFipa.NOT_UNDERSTOOD
Event flags:
direction: send
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false

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.