jadex.testcases.events
Agent InitialEvent
- agent InitialEvent
Test overwriting initial belief(set) values.
Needs a dummy agent being started with name da0.
Tests if initial events are working.
Defines an initial message event that is sent to the dummy agent.
Defines an initial internal event on which a plan reacts.
Excludes tools to be useable for all platforms.
Uses binding for the initial events.
Initial values for parameter with binding options override the bindings
and cause the value to be fixed.
The agent should send 3 messages as there are 3 possible bindings.
The agent should dispatch 2 internal events as there are 2 possible bindings
(the 'param' parameter has an initial value)
Plan Summary |
standard plan |
printer()
|
Initial State Summary |
default initial state |
test
|
printer
standard plan printer()
- Plan body:
new ResultPlan($event.getParameter("param2").getValue())
- Internal event trigger:
ievent
ievent
internalevent ievent(String param,
String param2)
- Parameters:
- in parameter
param
Binding options:
new String[]{"a", "b", "c"}
- in parameter
param2
Binding options:
new String[]{"1", "2"}
- Event flags:
- random selection: false
- meta-level reasoning: true
- post to all: true
just_born
messageevent just_born(String content,
String performative,
AgentIdentifier [set] receivers)
- Parameters:
- in parameter
content
Binding options:
new String[]{"hello_1", "hello_2", "hello_3"}
- fixed parameter
performative
Default value:
SFipa.INFORM
- in parameterset
receivers
Default values:
new AgentIdentifier("da0", true)
- Event flags:
- direction: send_receive
- message type: fipa
- random selection: false
- meta-level reasoning: true
- post to all: false
test
default initial state test
- Initial Internal Events:
- ievent (param=
"initial value"
) - Initial Message Events:
- just_born
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.