jadex.testcases.events
Agent SendAndWait
- agent SendAndWait
Test the waitqueue of plans.
Test waitqueue by receiving a number of messages
after waiting for a timeout.
Plan Summary |
standard plan |
answer()
This plan sends one answer |
standard plan |
test()
|
Event Summary |
messageevent |
inform(String performative)
This message is sent to itself, and therefore also received. |
messageevent |
request(String performative, String reply-with)
This message is sent to itself, and therefore also received. |
Initial State Summary |
default initial state |
default
|
test
standard plan test()
- Plan body:
new SendAndWaitPlan()
answer
standard plan answer()
- This plan sends one answer
- Plan body:
new AnswerPlan(1, 0)
- Message event trigger:
request
request
messageevent request(String performative,
String reply-with)
- This message is sent to itself, and therefore also received.
- Parameters:
- fixed parameter
performative
Default value:
SFipa.REQUEST
- in parameter
reply-with
Default value:
SFipa.createUniqueId($scope.getAgentName())
- Initialized with unique random value. - Event flags:
- direction: send_receive
- message type: fipa
- random selection: false
- meta-level reasoning: true
- post to all: false
inform
messageevent inform(String performative)
- This message is sent to itself, and therefore also received.
- 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
default
default initial state default
- Initial Plans:
- test
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.