jadex.testcases.plans
Agent PlanPriorities
- agent PlanPriorities
This agent tests plan priorities.
The default meta-level reasoner uses plan priorities
to determine, which candidates are scheduled for
execution.
In this example an initial goal is created for which
all of the declared plans are applicable. The plans
print out some message and fail.
Because the bdi-flag exclude is (per default) set
the three plans are subsequently invoked.
Goal Summary |
achievegoal |
test()
|
Plan Summary |
standard plan |
one()
|
standard plan |
two()
|
standard plan |
zero()
|
Initial State Summary |
default initial state |
default
|
test
achievegoal test()
- BDI flags:
- retry: true
- retry delay: 0
- exclude: when_tried
- random selection: false
- meta-level reasoning: true
- post to all: false
zero
standard plan zero()
- Plan body:
new PriorityPlan("0")
- Goal Trigger:
test
two
standard plan two()
- Plan body:
new PriorityPlan("2")
- Goal Trigger:
test
one
standard plan one()
- Plan body:
new PriorityPlan("1")
- Goal Trigger:
test
default
default initial state default
- Initial Goals:
- test
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.