| 
 | Jadex 0.941 | ||||||||
| PREV AGENT NEXT AGENT | FRAMES NO FRAMES | ||||||||
| SUMMARY: | BELIEF | GOAL | PLAN | EVENT | EXPRESSION | INITIAL STATE | DETAIL: BELIEF | GOAL | PLAN | EVENT | EXPRESSION | INITIAL STATE | ||||||||
TranslationCapability Lesson: D2. Using an exported belief.
| Belief Summary | |
| exported beliefset Tuple  | egwordsThis beliefset contains the english-german dictionary as facts. | 
| 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. | 
| Event Summary | |
| messageevent  | failure(String performative)The answer message after some error occurred. | 
| messageevent  | inform(String performative)The answer message after success. | 
| 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_egwordThis 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 beliefset Tuple egwords
new Tuple("milk", "Milch")new Tuple("cow", "Kuh")new Tuple("cat", "Katze")new Tuple("dog", "Hund")new Tuple("puppy", "Hund")new Tuple("hound", "Hund")new Tuple("jack", "Katze")new Tuple("crummie", "Kuh")| Plan Detail | 
standard plan addword()
new EnglishGermanAddWordPlanD2()request_addwordstandard plan egtrans()
new EnglishGermanTranslationPlanD2()request_translation| 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.REQUESTmessageevent inform(String performative)
performative Default value:
 SFipa.INFORMmessageevent failure(String performative)
performative Default value:
 SFipa.FAILURE| Expression Detail | 
expression query_egword
			select one $wordpair.get(1)
			from Tuple $wordpair in $beliefbase.egwords
			where $wordpair.get(0).equals($eword)
			| 
 | Jadex 0.941 | ||||||||
| PREV AGENT NEXT AGENT | FRAMES NO FRAMES | ||||||||
| SUMMARY: | BELIEF | GOAL | PLAN | EVENT | EXPRESSION | INITIAL STATE | DETAIL: BELIEF | GOAL | PLAN | EVENT | EXPRESSION | INITIAL STATE | ||||||||
Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.