jadex.testcases.misc
Agent Leaker
jadex.testcases.misc.Leaker
jadex.planlib.Test
- agent Leaker
- contains jadex.planlib.Test
Agent arguments: - runs int
- test int
, keepalive- keepalive boolean
, timeout- timeout long
, testcenter- testcenter AgentIdentifier
Test, if cleaning up works properly.
This agent starts plans, which try to provoke
memory leaks.
The test(s) to run can be selected: 1=goals, 2=conditions, 3=internal events, 4=message events, 0=all tests.
todo: how to determine success of testcases? memory consumption is not meaningful
Goal Summary |
achievegoal |
testgoal(long param1)
|
Plan Summary |
standard plan |
leaker(int testcase)
|
Configuration Summary |
default configuration |
default
|
runs
exported belief int runs
- Default fact:
10000
test
exported belief int test
- The test to run (1=goals, 2=conditions, 3=internal events, 4=message events, 0=all tests).
- Default fact:
0
testcase_cnt
beliefref int testcase_cnt
- Default fact:
1
- Referenced from:
testcase_cnt
in capability jadex.planlib.Test
keepalive
exported beliefref keepalive
- Default fact:
false
- Referenced from:
keepalive
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
testgoal
achievegoal testgoal(long param1)
- Parameters:
- in parameter
param1
Default value:
System.currentTimeMillis()
- BDI flags:
- retry: true
- retry delay: 0
- exclude: when_tried
- random selection: false
- post to all: false
leaker
standard plan leaker(int testcase)
- Parameters:
- in parameter
testcase
Default value:
$beliefbase.test
- Specifies the testcase to run (1-4, 0 for all tests).
- Plan body:
testevent
internalevent testevent(long param1)
- Parameters:
- in parameter
param1
Default value:
System.currentTimeMillis()
- Event flags:
- random selection: false
- post to all: true
testmsg
messageevent testmsg(String content,
AgentIdentifier [set] receivers)
- Parameters:
- in parameter
content
Default value:
"test-msg-content"
- in parameterset
receivers
Default values:
$agent.getAgentIdentifier()
- Event flags:
- direction: send_receive
- message type: fipa
- random selection: false
- post to all: false
default
default configuration default
- Initial Beliefs:
- testcase_cnt Initial value:
$beliefbase.test==0 ? 4 : 1
- Initial Plans:
- leaker
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.