Package jadex.bdiv3.tutorial.f1
Class TranslationBDI
- java.lang.Object
-
- jadex.bdiv3.tutorial.f1.TranslationBDI
-
- All Implemented Interfaces:
ITranslationService
public class TranslationBDI extends java.lang.Object implements ITranslationService
The translation agent F1. Translation agent that implements itself the translation service. Just looks up translation word in hashtable and returns the corresponding entry.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
protected java.util.Map<java.lang.String,java.lang.String>
wordtable
The wordtable.
-
Constructor Summary
Constructors Constructor Description TranslationBDI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
IFuture<java.lang.String>
translateEnglishGerman(java.lang.String eword)
Translate an English word to German.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
-
wordtable
protected java.util.Map<java.lang.String,java.lang.String> wordtable
The wordtable.
-
-
Method Detail
-
init
public void init()
-
translateEnglishGerman
public IFuture<java.lang.String> translateEnglishGerman(java.lang.String eword)
Translate an English word to German.- Specified by:
translateEnglishGerman
in interfaceITranslationService
- Parameters:
eword
- The english word.- Returns:
- The german translation.
-
-