jadex.testcases.goals
Agent GoalConditions
jadex.testcases.goals.GoalConditions
jadex.planlib.Test
- agent GoalConditions
- contains jadex.planlib.Test
Agent arguments: timeout- timeout long
, testcenter- testcenter AgentIdentifier
Test the creation, context, and drop conditions of goals.
The goal condition plan successively sets the
creation, context, and drop beliefs to true.
The beliefs will trigger the corresponding conditions of
the test goal:
- Initially there is no goal or plan.
- When the creation condition triggers, the goal will be created.
- When the context condition triggers, a plan will be started.
- When the drop condition triggers, the goal and corresponding plan will be removed.
- When the creation condition triggers again, a new goal/plan will be created.
- When the context condition triggers, the plan will be aborted.
- When the context condition triggers again, a new plan will be started.
(Note that the firing of (all) conditions can
be finetuned by setting the trigger attribute to one
of changes_to_true, changes_to_false, changes, is_true
is_false).
Goal Summary |
performgoal |
test()
|
Configuration Summary |
default configuration |
default
|
creation
belief boolean creation
- Default fact:
false
context
belief boolean context
- Default fact:
false
drop
belief boolean drop
- Default fact:
false
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
test
performgoal test()
- BDI flags:
- retry: true
- retry delay: 0
- exclude: never
- random selection: false
- post to all: false
- Context Condition:
$beliefbase.context
- Creation Condition:
$beliefbase.creation
- Drop Condition:
$beliefbase.drop
testplan
standard plan testplan()
- Plan body:
work
standard plan work()
- Plan body:
new WorkPlan()
- Plan trigger:
- Goals:
test
default
default configuration default
- Initial Beliefs:
- testcase_cnt Initial value:
7
- Initial Plans:
- testplan
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.