Class TranslationGenerator

java.lang.Object
edu.tufts.hrilab.action.translation.TranslationGenerator

public abstract class TranslationGenerator extends Object
  • Field Details

    • log

      protected static final org.slf4j.Logger log
  • Constructor Details

    • TranslationGenerator

      protected TranslationGenerator()
      Protected to prevent instantiation except by subclasses.
  • Method Details

    • getInstance

      public static TranslationGenerator getInstance()
      Get the translation generator instance.
      Returns:
      the singleton instance of an TranslationGenerator.
    • setTranslationGeneratorType

      public static void setTranslationGeneratorType(String type)
      Helper method to convert string form of ActionSelector type (e.g., classpath) into a Class object and set the ActionSelector type.
      Parameters:
      type -
    • setTranslationGeneratorType

      public static boolean setTranslationGeneratorType(Class<? extends TranslationGenerator> type)
      Set the action selector type.
      Parameters:
      type - the action selector to use, a subclass of this class
      Returns:
      success / failure (it can't be set after instance has been constructed)
    • generateTranslation

      public abstract void generateTranslation(List<TranslationInfo> steps)
    • isAnnotationTranslatable

      public abstract boolean isAnnotationTranslatable(Annotation a)
    • getTranslationInfoType

      public abstract Class<? extends TranslationInfo> getTranslationInfoType()