jadex.testcases.goals
Agent TriggerBySuspension
jadex.testcases.goals.TriggerBySuspension
jadex.planlib.Test
- agent TriggerBySuspension
- contains jadex.planlib.Test
Agent arguments: testcenter- testcenter AgentIdentifier
Test if goal suspension can trigger a plan.
The suspension of the initial goal triggers the test plan.
The initial goal is an achieve goal associated with
an increment plan that increments
every second the belief count. The achieve
goal succeeds when it has count till 10.
It will be suspended when it is 5.
Goal Summary |
achievegoal |
cnt()
|
Plan Summary |
standard plan |
increment()
|
standard plan |
test(jadex.runtime.impl.IRGoal $g)
|
Configuration Summary |
default configuration |
default
|
count
belief int count
- Default fact:
0
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
cnt
achievegoal cnt()
- BDI flags:
- retry: true
- retry delay: 0
- exclude: never
- random selection: false
- post to all: false
- Context Condition:
$beliefbase.count!=5
- Target Condition:
$beliefbase.count==10
increment
standard plan increment()
- Plan body:
new BeliefIncrementPlan("count", 1, 100)
- Plan trigger:
- Goals:
cnt
test
standard plan test(jadex.runtime.impl.IRGoal $g)
- Parameters:
- in parameter
$g
Binding options:
select IRGoal $g from $goalbase.getGoals()
where IGoal.LIFECYCLESTATE_SUSPENDED.equals($g.getLifecycleState())
- Plan body:
new StoreReportPlan(new TestReport("test_trigger", "Test if goal suspension can trigger a plan.", true, null))
- Plan trigger:
- Condition
true
default
default configuration default
- Initial Goals:
- cnt
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.