jadex.testcases.plans
Agent PlanPassedFailed
jadex.testcases.plans.PlanPassedFailed
jadex.planlib.Test
- agent PlanPassedFailed
- contains jadex.planlib.Test
Agent arguments: timeout- timeout long
, testcenter- testcenter AgentIdentifier
Test the plans passed() and failed() methods.
Test, if the plan methods passed() and failed() are
called properly, according to the plan behaviour.
The agent create 4 goal in sequence and always
uses the PassedFailedPlan to execute a further
testcase. The belief cnt captures the testcase no.
aborted() method is tested in PlanAbort.agent (abort on failure)
and PlanContext.agent (abort on success)
Goal Summary |
achievegoal |
init()
|
Configuration Summary |
default configuration |
default
|
cnt
belief int cnt
- Default fact:
0
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 TestReport reports
- Referenced from:
reports
in capability jadex.planlib.Test
init
achievegoal init()
- BDI flags:
- retry: false
- retry delay: 0
- exclude: when_tried
- random selection: false
- post to all: false
- Creation Condition:
$beliefbase.cnt<4
passfail
standard plan passfail()
- Plan body:
new PassedFailedPlan()
- Plan trigger:
- Goals:
init
default
default configuration default
- Initial Beliefs:
- testcase_cnt Initial value:
4
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.