Jadex 0.941

jadex.testcases.goals
Agent GoalConditions


agent GoalConditions

Test the creation and deletion conditions of goals.

This example has the initial BeliefIncrementPlan, which increments the belief count every 1000 millis. Additionally it has a perform goal with creation and deletion conditions. Therefore a new perform goal is created when count==5 and the goal is deleted when count==10. (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).


Belief Summary
belief int count
          
 
Goal Summary
performgoal test()
          
 
Plan Summary
standard plan increment()
          
standard plan work()
          
 
Initial State Summary
default initial state  default
          
 

Belief Detail

count

belief int count
Default fact:
0
Goal Detail

test

performgoal test()
BDI flags:
retry: true
retry delay: 0
exclude: when_tried
random selection: false
meta-level reasoning: true
post to all: false
Creation Condition:
$beliefbase.count==5
Drop Condition:
$beliefbase.count==10
Plan Detail

increment

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

work

standard plan work()
Plan body:
new WorkPlan()
Goal Trigger:
test
Initial State Detail

default

default initial state default
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.