Jadex 0.941

jadex.testcases.goals
Agent Candy


agent Candy

An agent that uses two subsequent plans for eating candy

Example clarifies problem from Brad Dixon's post on 07/27/05.


Belief Summary
belief boolean candyeaten
          
belief boolean jaropen
          
 
Goal Summary
achievegoal eat_candy()
          
 
Plan Summary
standard plan get_candy()
          
standard plan open_jar()
          
 
Initial State Summary
default initial state  default
          
 

Belief Detail

jaropen

belief boolean jaropen
Default fact:
false

candyeaten

belief boolean candyeaten
Default fact:
false
Goal Detail

eat_candy

achievegoal eat_candy()
BDI flags:
retry: true
retry delay: 0
exclude: when_tried
random selection: false
meta-level reasoning: true
post to all: false
Target Condition:
$beliefbase.candyeaten
Plan Detail

get_candy

standard plan get_candy()
Plan body:
new BeliefChangePlan("candyeaten", new Boolean(true))
Goal Trigger:
eat_candy

open_jar

standard plan open_jar()
Plan body:
new BeliefChangePlan("jaropen", new Boolean(true))
Goal Trigger:
eat_candy
Initial State Detail

default

default initial state default
Initial Goals:
eat_candy

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.