jadex.testcases.goals
Agent Candy
jadex.testcases.goals.Candy
jadex.planlib.Test
- agent Candy
- contains jadex.planlib.Test
Agent arguments: testcenter- testcenter AgentIdentifier
An agent that uses two subsequent plans for achieving the goal of eating candy
Example clarifies problem from Brad Dixon's post on 07/27/05.
Configuration Summary |
default configuration |
default
|
jaropen
belief boolean jaropen
- Default fact:
false
candyeaten
belief boolean candyeaten
- Default fact:
false
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
testgoal
achievegoal testgoal()
- BDI flags:
- retry: true
- retry delay: 0
- exclude: when_tried
- random selection: false
- post to all: false
- Target Condition:
$beliefbase.candyeaten
get_candy
standard plan get_candy()
- Plan body:
new BeliefChangePlan("candyeaten", new Boolean(true))
- Plan trigger:
- Goals:
testgoal
open_jar
standard plan open_jar()
- Plan body:
new BeliefChangePlan("jaropen", new Boolean(true))
- Plan trigger:
- Goals:
testgoal
testplan
standard plan testplan()
- Plan body:
default
default configuration default
- Initial Plans:
- testplan
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.