jadex.testcases.misc
Agent EndStateWorker
jadex.testcases.misc.EndStateWorker
jadex.testcases.misc.EndStateWorker
- agent EndStateWorker
- contains EndStateWorker
Agent arguments: - testagent AgentIdentifier
Check end state and report to test case agent
Part of EndState test.
Expression Summary |
condition |
end_tests_finished
Tests for end state elements are finished when all elements have
been triggered and therefore there is no more unsucceeded test. |
Configuration Summary |
default configuration |
default
|
testagent
exported belief AgentIdentifier testagent
trigger
belief boolean trigger
- Default fact:
false
reports
beliefset TestReport reports
- Default facts:
new TestReport("end plan", "Test if end plan is executed")
new TestReport("end goal", "Test if end goal is dispatched")
new TestReport("end internal event", "Test if end internal event is dispatched")
new TestReport("end message event", "Test if end message event is sent")
new TestReport("capability end goal", "Test if capability end goal is dispatched")
new TestReport("capability end internal event", "Test if capability end internal event is dispatched")
new TestReport("capability end message event", "Test if capability end message event is sent")
testgoal
achievegoal testgoal()
- A goal that should not be triggered in end state.
- BDI flags:
- retry: true
- retry delay: 0
- exclude: when_tried
- random selection: false
- post to all: false
- Creation Condition:
$beliefbase.trigger
endgoal
achievegoal endgoal(String content)
- Parameters:
- in parameter
content
Default value:
"end goal"
- BDI flags:
- retry: true
- retry delay: 0
- exclude: when_tried
- random selection: false
- post to all: false
capendgoal
achievegoalref capendgoal
- Parameters:
- parameterref
content
- Referenced from:
capendgoal
in capability EndStateWorker
endstateworker_plan
standard plan endstateworker_plan()
- Plan body:
endstateinitiator_plan
mobile plan endstateinitiator_plan()
- Plan body:
new EndStateInitiatorPlan()
dummy_plan
standard plan dummy_plan()
- Plan body:
new ResultPlan(100, true)
- Plan trigger:
- Goals:
testgoal
- Condition
$beliefbase.trigger
endstateworkertest_plan
standard plan endstateworkertest_plan(String content)
- Parameters:
- in parameter
content
(goal mappings: endgoal.content capendgoal.content internal event mappings: endevent.content capendevent.content message event mappings: endmsg.content capendmsg.content)
- Plan body:
- Plan trigger:
- Goals:
endgoal
- Goals:
capendgoal
- Internal events:
endevent
- Internal events:
capendevent
- Message events:
endmsg
- Message events:
capendmsg
endstateworkertest_plan2
standard plan endstateworkertest_plan2(String content)
- Parameters:
- in parameter
content
- Plan body:
endevent
internalevent endevent(String content)
- Parameters:
- in parameter
content
Default value:
"end internal event"
- Event flags:
- random selection: false
- post to all: true
capendevent
internaleventref capendevent
- Parameters:
- parameterref
content
- Referenced from:
capendevent
in capability EndStateWorker
endmsg
messageevent endmsg(String content,
String performative,
AgentIdentifier [set] receivers)
- Parameters:
- fixed parameter
content
Default value:
"end message event"
- fixed parameter
performative
Default value:
SFipa.INFORM
- in parameterset
receivers
Default values:
$agent.getAgentIdentifier()
- Event flags:
- direction: send_receive
- message type: fipa
- random selection: false
- post to all: false
inform_reports
messageevent inform_reports(String language,
String performative,
AgentIdentifier [set] receivers)
- Parameters:
- in parameter
language
Default value:
SFipa.NUGGETS_XML
- in parameter
performative
Default value:
SFipa.INFORM
- in parameterset
receivers
Default values:
$beliefbase.testagent
- Event flags:
- direction: send
- message type: fipa
- random selection: false
- post to all: false
capendmsg
messageeventref capendmsg
- Parameters:
- parameterref
action-class
- parameterref
content
- parameterref
content-class
- parameterref
content-start
- parameterref
conversation-id
- parameterref
encoding
- parameterref
in-reply-to
- parameterref
language
- parameterref
ontology
- parameterref
performative
- parameterref
protocol
- parameterref
reply-by
- parameterref
reply-to
- parameterref
reply-with
- parameterref
sender
- parameterset
receivers
- Referenced from:
capendmsg
in capability EndStateWorker
end_tests_finished
condition end_tests_finished
- Tests for end state elements are finished when all elements have
been triggered and therefore there is no more unsucceeded test.
- Expression:
(select one TestReport $report from $beliefbase.reports
where !$report.isSucceeded())==null
default
default configuration default
- Initial Plans:
- endstateworker_plan
- endstateinitiator_plan
- End Goals:
- endgoal
- capendgoal
- End Plans:
- endstateworkertest_plan2 (content=
"end plan"
)
- End Internal Events:
- endevent
- capendevent
- End Message Events:
- endmsg
- capendmsg
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.