Jadex 0.941

jadex.testcases.goals
Agent MaintainGoal


agent MaintainGoal

Test a maintain goal.

This agent has an initial plan that increments every second the belief count. Additionally it has a maintain goal that supervises the belief count and becomes active, whenever the belief count is >9. In this case the only applicable plan is the decrement plan, which is able to reduce the belief with 5.

The maintain goal has a context condition that directly maps to the state of the belief . Setting this belief to false (with the BDI-Viewer) results in the maintain goal suspension.


Belief Summary
belief boolean context
          
belief int count
          
 
Goal Summary
maintaingoal keep()
          
 
Plan Summary
standard plan decrement()
          
standard plan increment()
          
 
Initial State Summary
default initial state  default
          
 

Belief Detail

count

belief int count
Default fact:
0

context

belief boolean context
Default fact:
true
Goal Detail

keep

maintaingoal keep()
BDI flags:
retry: true
retry delay: 0
exclude: never
random selection: false
meta-level reasoning: true
post to all: false
recur: false
recur delay: 10000
Context Condition:
$beliefbase.context
Maintain Condition:
$beliefbase.count<10
Target Condition:
$beliefbase.count<10
Plan Detail

increment

standard plan increment()
Plan body:
new BeliefIncrementPlan("count", 1, 1000)

decrement

standard plan decrement()
Plan body:
new BeliefIncrementPlan("count", -5, 0)
Goal Trigger:
keep
Initial State Detail

default

default initial state default
Initial Goals:
keep
Initial Plans:
increment

Jadex 0.941

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.