jadex.testcases.events
Agent InitialEvent
jadex.testcases.events.InitialEvent
jadex.planlib.Test
- agent InitialEvent
- contains jadex.planlib.Test
Agent arguments: timeout- timeout long
, testcenter- testcenter AgentIdentifier
Test initial events (internal and message).
Defines an initial message event that is sent to itself.
Defines an initial internal event on which a plan reacts.
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)
Configuration Summary |
default configuration |
test
|
testcase_cnt
beliefref int testcase_cnt
- Default fact:
1
- Referenced from:
testcase_cnt
in capability jadex.planlib.Test
timeout
exported beliefref long timeout
- Default fact:
0
- Referenced from:
timeout
in capability jadex.planlib.Test
testcenter
exported beliefref AgentIdentifier testcenter
- Referenced from:
testcenter
in capability jadex.planlib.Test
reports
beliefsetref reports
- Referenced from:
reports
in capability jadex.planlib.Test
eventhandler
standard plan eventhandler()
- Plan body:
- Plan waitqueue:
- Internal events:
ievent
messagereceiver
standard plan messagereceiver()
- Plan body:
- Plan waitqueue:
- Message events:
just_born_receive
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
- post to all: true
just_born_send
messageevent just_born_send(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:
$agent.getAgentIdentifier()
- Event flags:
- direction: send
- message type: fipa
- random selection: false
- post to all: false
just_born_receive
messageevent just_born_receive(String performative)
- Parameters:
- fixed parameter
performative
Default value:
SFipa.INFORM
- Event flags:
- direction: receive
- message type: fipa
- random selection: false
- post to all: false
test
default configuration test
- Initial Beliefs:
- testcase_cnt Initial value:
2
- Initial Plans:
- eventhandler
- messagereceiver
- Initial Internal Events:
- ievent (param=
"initial value"
)
- Initial Message Events:
- just_born_send
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.