Class ItemConsultant

java.lang.Object
edu.tufts.hrilab.consultant.Consultant<ItemReference>
edu.tufts.hrilab.abb.consultant.item.ItemConsultant
All Implemented Interfaces:
ConsultantInterface

public class ItemConsultant extends Consultant<ItemReference>
  • Constructor Details

    • ItemConsultant

      public ItemConsultant()
  • Method Details

    • localConvertToType

      protected <U> U localConvertToType(Symbol refId, Class<U> type)
      Description copied from class: Consultant
      The local implementation of convertToType.
      Specified by:
      localConvertToType in class Consultant<ItemReference>
      Type Parameters:
      U - target Java class template type (any)
      Parameters:
      refId - reference resolution ID (e.g.object_3)
      type - target Java class type
      Returns:
      instance of specified target Java class
    • localConvertToType

      protected <U> U localConvertToType(Symbol refId, Class<U> type, List<? extends Term> constraints)
      Description copied from class: Consultant
      The local implementation of convertToType.
      Specified by:
      localConvertToType in class Consultant<ItemReference>
      Type Parameters:
      U - target Java class template type (any)
      Parameters:
      refId - reference resolution ID (e.g.object_3)
      type - target Java class type
      constraints - first-order-logic predicate constraints
      Returns:
      instance of specified target Java class
    • addPropertiesHandled

      public boolean addPropertiesHandled(List<Term> properties)
      Description copied from class: Consultant
      Updates consultant and parser if any of the members of @properties are not already handled by the Consultant
      Overrides:
      addPropertiesHandled in class Consultant<ItemReference>
      Parameters:
      properties - list of candidate properties
      Returns:
      true if propertiesHandled is modified
    • addItem

      public Symbol addItem(Symbol name)