jadex.testcases.goals
Agent MaintainGoalContext
jadex.testcases.goals.MaintainGoalContext
jadex.planlib.Test
- agent MaintainGoalContext
- contains jadex.planlib.Test
Agent arguments: timeout- timeout long
, testcenter- testcenter AgentIdentifier
Test maintain goal suspension.
The test plan creates a maintain goal and suspends it
while it is in process.
Then the goal is reactivated to see if it will continue to work.
Configuration Summary |
default configuration |
default
|
count
belief int count
- Default fact:
0
context
belief boolean context
- Default fact:
true
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
maintain
maintaingoal maintain()
- BDI flags:
- retry: true
- retry delay: 100
- exclude: never
- random selection: false
- post to all: false
- recur: false
- recur delay: 0
- Context Condition:
$beliefbase.context
- Maintain Condition:
$beliefbase.count==5
- Target Condition:
$beliefbase.count==5
test
standard plan test()
- Plan body:
increment
standard plan increment()
- Plan body:
new BeliefIncrementPlan("count", 1, 0)
- Plan trigger:
- Goals:
maintain
default
default configuration default
- Initial Beliefs:
- testcase_cnt Initial value:
4
- Initial Plans:
- 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-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.