Class ContextConsultant
java.lang.Object
edu.tufts.hrilab.consultant.Consultant<ContextReference>
edu.tufts.hrilab.action.execution.ContextConsultant
- All Implemented Interfaces:
ConsultantInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.consultant.Consultant
defaultProperties, kbName, log, propertiesHandled, refConstructor, refNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of currently highly salient entities that should be considered "activated."getContextFromId(long id) booleangetStatusFromRef(Symbol refId) getSuccessFromRef(Symbol refId) protected <U> UlocalConvertToType(Symbol refId, Class<U> type) The local implementation of convertToType.protected <U> UlocalConvertToType(Symbol refId, Class<U> type, List<? extends Term> constraints) The local implementation of convertToType.voidmakeContextSalient(long id) Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addPropertiesHandled, addReference, assertProperties, assertProperties, convertToType, convertToType, createReference, createReferences, getAllReferences, getAssertedProperties, getInitialDomain, getKBName, getNextReferenceId, getPropertiesHandled, getReference, getReferenceSummaries, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, process, registerForNewPropertyNotification, removeReference, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotification
-
Constructor Details
-
ContextConsultant
-
-
Method Details
-
localConvertToType
Description copied from class:ConsultantThe local implementation of convertToType.- Specified by:
localConvertToTypein classConsultant<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
Description copied from class:ConsultantThe local implementation of convertToType.- Specified by:
localConvertToTypein classConsultant<ContextReference>- Type Parameters:
U- target Java class template type (any)- Parameters:
refId- reference resolution ID (e.g.object_3)type- target Java class typeconstraints- first-order-logic predicate constraints- Returns:
- instance of specified target Java class
-
getActivatedEntities
Description copied from interface:ConsultantInterfaceGet a list of currently highly salient entities that should be considered "activated."- Specified by:
getActivatedEntitiesin interfaceConsultantInterface- Overrides:
getActivatedEntitiesin classConsultant<ContextReference>- Returns:
- list of refIds and probability pairs
-
makeContextSalient
public void makeContextSalient(long id) -
getContextFromId
-
getSuccessFromRef
-
getStatusFromRef
-