jadex.testcases.goals
Agent MaintainGoalContext
- agent MaintainGoalContext
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.
Initial State Summary |
default initial state |
default
|
count
belief int count
- Default fact:
0
context
belief boolean context
- Default fact:
true
maintain
maintaingoal maintain()
- BDI flags:
- retry: true
- retry delay: 500
- exclude: never
- random selection: false
- meta-level reasoning: true
- 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:
new MaintainTestPlan()
increment
standard plan increment()
- Plan body:
new BeliefIncrementPlan("count", 1, 0)
- Goal Trigger:
maintain
default
default initial state default
- 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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.