|
Jadex 0.96 | ||||||||
PREV AGENT NEXT AGENT | FRAMES NO FRAMES | ||||||||
SUMMARY: | BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION | DETAIL: BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION |
Belief Summary | |
beliefset Tuple |
egwords
This beliefset contains the english-german dictionary as facts. |
exported belief int |
transcnt
This belief stores the number of translation requests already processed. |
Plan Summary | |
standard plan |
addword()
Passive plan for adding words, when a request word message is received. |
standard plan |
egtrans()
Passive plan for translating words, when a request translation message is received. |
standard plan |
thankyou()
Passive plan for printing out a message, whenever the condition is satisfied, that it is the 10, 20,... translation request |
Event Summary | |
messageevent |
request_addword(String content-start, String performative)
Specifies a add word request being all messages with performative request and start with a specific string "add english_german". |
messageevent |
request_translation(String content-start, String performative)
Specifies a translation request being all messages with performative request and start with a specific string "translate english_german". |
Expression Summary | |
expression |
query_egword
This query selects the first matching entry from the dictionary, whereby the parameter $eword is compared to the first element of a belief set tuple. |
Belief Detail |
exported belief int transcnt
0
beliefset Tuple egwords
new Tuple("milk", "Milch")
new Tuple("cow", "Kuh")
new Tuple("cat", "Katze")
new Tuple("dog", "Hund")
Plan Detail |
standard plan addword()
request_addword
standard plan egtrans()
request_translation
standard plan thankyou()
$beliefbase.transcnt>0 && $beliefbase.transcnt%10==0
Event Detail |
messageevent request_addword(String content-start, String performative)
content-start
Default value:
"add english_german"
performative
Default value:
SFipa.REQUEST
messageevent request_translation(String content-start, String performative)
content-start
Default value:
"translate english_german"
performative
Default value:
SFipa.REQUEST
Expression Detail |
expression query_egword
select one $wordpair.get(1)
from Tuple $wordpair in $beliefbase.egwords
where $wordpair.get(0).equals($eword)
|
Jadex 0.96 | ||||||||
PREV AGENT NEXT AGENT | FRAMES NO FRAMES | ||||||||
SUMMARY: | BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION | DETAIL: BELIEF | GOAL | PLAN | EVENT | EXPRESSION | CONFIGURATION |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.