Class ContextConsultant

java.lang.Object
edu.tufts.hrilab.consultant.Consultant<ContextReference>
edu.tufts.hrilab.action.execution.ContextConsultant
All Implemented Interfaces:
ConsultantInterface

public class ContextConsultant extends Consultant<ContextReference>
  • Constructor Details

  • 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<ContextReference>
      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<ContextReference>
      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
    • getActivatedEntities

      public Map<Symbol,Double> getActivatedEntities()
      Description copied from interface: ConsultantInterface
      Get a list of currently highly salient entities that should be considered "activated."
      Specified by:
      getActivatedEntities in interface ConsultantInterface
      Overrides:
      getActivatedEntities in class Consultant<ContextReference>
      Returns:
      list of refIds and probability pairs
    • makeContextSalient

      public void makeContextSalient(long id)
    • getContextFromId

      public Context getContextFromId(long id)
    • getSuccessFromRef

      public Justification getSuccessFromRef(Symbol refId)
    • getStatusFromRef

      public boolean getStatusFromRef(Symbol refId)