jadex.testcases.plans
Agent PlanCondition
jadex.testcases.plans.PlanCondition
jadex.planlib.Test
- agent PlanCondition
- contains jadex.planlib.Test
Agent arguments: timeout- timeout long
, testcenter- testcenter AgentIdentifier
Test an activation condition of a plan.
This agent has a "plan_a" plan which reacts on
a condition. This condition is triggered when
the belief count is 1.
This agent has a "plan_b" plan which reacts on
a condition. This condition is triggered when
the belief count is 2.
Because two bindings are possible, two instances
of the plan are executed (one for each binding).
Configuration Summary |
default configuration |
default
|
count
belief int count
- Default fact:
0
a
belief int a
- Default fact:
0
testcase_cnt
beliefref int testcase_cnt
- Default fact:
1
- Referenced from:
testcase_cnt
in capability jadex.planlib.Test
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 TestReport reports
- Referenced from:
reports
in capability jadex.planlib.Test
plan_a
standard plan plan_a()
- Plan body:
new BeliefIncrementPlan("a")
- Plan trigger:
- Condition
$beliefbase.count==1
plan_b
standard plan plan_b(String var)
- Parameters:
- in parameter
var
Binding options:
new String[]{"var1", "var2"}
- Plan body:
new ResultPlan(false, new Integer($beliefbase.a+1), "a")
- Plan trigger:
- Condition
$beliefbase.count==2
tester
standard plan tester()
- Plan body:
default
default configuration default
- Initial Beliefs:
- testcase_cnt Initial value:
2
- Initial Plans:
- tester
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.