Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • wordtable

        protected java.util.Map<java.lang.String,​java.lang.String> wordtable
        The wordtable.
    • Constructor Detail

      • TranslationBDI

        public TranslationBDI()
    • 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 interface ITranslationService
        Parameters:
        eword - The english word.
        Returns:
        The german translation.