Class SymbolTranslator

java.lang.Object
FAtiMA.culture.SymbolTranslator

public class SymbolTranslator extends Object
  • Method Details

    • GetInstance

      public static SymbolTranslator GetInstance()
    • addEntry

      public void addEntry(String symbol, String meaning) throws DuplicateSymbolTranslatorEntry
      Throws:
      DuplicateSymbolTranslatorEntry
    • translateSymbolToMeaning

      public String translateSymbolToMeaning(String symbolName)
      Parameters:
      symbolName -
      Returns:
      The action associated to symbolName. If there isn't any action associated then it returns the parameter symbolName
    • translateMeaningToSymbol

      public String translateMeaningToSymbol(String actionName)
      Parameters:
      actionName -
      Returns:
      The symbol associated to actionName. If there isn't any symbol associated then it returns the parameter actionName
    • clearAll

      public void clearAll()