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 SummaryFields Modifier and Type Field Description protected IInternalAccessagentprotected java.util.Map<java.lang.String,java.lang.String>wordtableThe wordtable.
 - 
Constructor SummaryConstructors Constructor Description TranslationBDI()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()IFuture<java.lang.String>translateEnglishGerman(java.lang.String eword)Translate an English word to German.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent 
 - 
wordtableprotected java.util.Map<java.lang.String,java.lang.String> wordtable The wordtable.
 
- 
 - 
Method Detail- 
initpublic void init() 
 - 
translateEnglishGermanpublic IFuture<java.lang.String> translateEnglishGerman(java.lang.String eword) Translate an English word to German.- Specified by:
- translateEnglishGermanin interface- ITranslationService
- Parameters:
- eword- The english word.
- Returns:
- The german translation.
 
 
- 
 
-