jadex.testcases.beliefs
Agent InitialBelief
jadex.testcases.beliefs.InitialBelief
jadex.testcases.beliefs.InitialBelief
- agent InitialBelief
- contains InitialBelief
Test overwriting initial belief(set) values.
The most outside (near agent) initial state for beliefs
and belief sets are used.
The agent uses a capability which defines a belief
and a belief set with default values. Additionally
the capability has two initial states. In state 0
initial values for the belief/set are defined. In
state 1 nothing is initially defined.
The agent references the belief/set and overwrites
the values in configuartion 0 (in 1 nothing is)
overwritten.
agent:test_0 capa:test0/1 -> agent_initial_name (Agent values are used)
agent:test_1 capa:test0 -> capability_initial_name (Capability initial values are used)
agent:test_1 capa:test1 -> capability_default_name (Capability default values are used)
Plan Summary |
standard plan |
printer()
|
Initial State Summary |
initial state |
test_0
|
default initial state |
test_1
|
my_name
beliefref my_name
- Default fact:
"capability_default_name"
- Referenced from:
my_name
in capability InitialBelief
my_names
beliefsetref my_names
- Default facts:
"capability_default_name_0"
"capability_default_name_1"
- Referenced from:
my_names
in capability InitialBelief
printer
standard plan printer()
- Plan body:
new ResultPlan(""+$beliefbase.my_name+" "+jadex.util.SUtil.arrayToString($beliefbase.my_names))
test_0
initial state test_0
- Initial Beliefs:
- my_name Initial value:
"agent_initial_name"
- my_names Initial values:
"agent_initial_name_0"
"agent_initial_name_1"
- Initial Plans:
- printer
test_1
default initial state test_1
- Initial Plans:
- printer
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.