Class OperatorDatabase

java.lang.Object
edu.tufts.hrilab.action.db.OperatorDatabase

public class OperatorDatabase extends Object
  • Constructor Details

    • OperatorDatabase

      protected OperatorDatabase()
      Protected so that only the Database can instantiate.
  • Method Details

    • addOperators

      protected void addOperators(Class[] operatorClasses)
    • addOperator

      protected void addOperator(Method m)
    • getOperator

      public final OperatorDBEntry getOperator(String type)
      Lookup operator by type. Returns last added operator if more than one operator with type.
      Parameters:
      type - the type of the operator to look up
      Returns:
      the requested operator (last added), if found, null otherwise
    • getOperator

      public final OperatorDBEntry getOperator(String type, List<Class<?>> inputRoleTypes)
      Lookup operator by type and roles.
      Parameters:
      type - the type of the operator to look up
      Returns:
      the requested operator, if found, null otherwise
    • getOperatorSilent

      public final OperatorDBEntry getOperatorSilent(String type, List<Class<?>> roles)
      Lookup operator by type and roles. Do not print error if lookup fails.
      Parameters:
      type - the type of the operator to look up
      Returns:
      the requested operator, if found, null otherwise