jadex.tutorial
Agent TranslationB3
- agent TranslationB3
TranslationAgent: Lesson B3.
Using plan parameters and parameter mappings.
Explanation
The agent uses a plan parameter for representing
the word to translate. The word is automatically
mapped from the triggering message event to the
plan parameter value.
Plan Summary |
standard plan |
egtrans(String word)
A translation plan, from which a new instance is created
whenever a translation request is received. |
Event Summary |
messageevent |
request_translation(String performative)
Specifies a translation request being all
messages with performative request. |
egtrans
standard plan egtrans(String word)
- A translation plan, from which a new instance is created
whenever a translation request is received.
- Parameters:
- in parameter
word
( message event mappings: request_translation.content) - Plan body:
new EnglishGermanTranslationPlanB3()
- Message event trigger:
request_translation
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
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.