Jadex 0.941

jadex.tutorial
Agent TranslationB4


agent TranslationB4

TranslationAgent: Lesson B4.

Using plan priorities.

Explanation

This agent has two plans for translating words. One plan uses a dictionary whereas the other one requests an online dictionary. If the word is in the dictionary both plans are applicable and the one with the highest priority is used. Only when the word is not in the dictionary, the online plan (with a lower priority) is invoked.


Plan Summary
standard plan egtrans()
           A translation plan, from which a new instance is created whenever a translation request is received.
standard plan searchonline()
           Search the word online.
 
Event Summary
messageevent request_translation(String performative)
           Specifies a translation request being all messages with performative request.
 

Plan Detail

egtrans

standard plan egtrans()
A translation plan, from which a new instance is created whenever a translation request is received.

Plan body:
new EnglishGermanTranslationPlanB4()
Message event trigger:
request_translation

searchonline

standard plan searchonline()
Search the word online.

Plan body:
new SearchTranslationOnlineB4()
Message event trigger:
request_translation
Event Detail

request_translation

messageevent request_translation(String performative)
Specifies a translation request being all messages with performative request.

Parameters:
fixed parameter performative Default value:  SFipa.REQUEST
Event flags:
direction: receive
message type: fipa
random selection: false
meta-level reasoning: true
post to all: false

Jadex 0.941

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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.