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, references, refNumber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of currently highly salient entities that should be considered "activated."getContextFromId
(long id) boolean
getStatusFromRef
(Symbol refId) getSuccessFromRef
(Symbol refId) protected <U> U
localConvertToType
(Symbol refId, Class<U> type) protected <U> U
localConvertToType
(Symbol refId, Class<U> type, List<? extends Term> constraints) void
makeContextSalient
(long id) Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addPropertiesHandled, addReference, assertProperties, assertProperties, convertToType, convertToType, createReference, createReferences, getAssertedProperties, getInitialDomain, getKBName, getNextReferenceId, getPropertiesHandled, getReference, getReferenceSummaries, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, process, registerForNewPropertyNotification, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotification
-
Constructor Details
-
ContextConsultant
-
-
Method Details
-
localConvertToType
- Specified by:
localConvertToType
in classConsultant<ContextReference>
-
localConvertToType
- Specified by:
localConvertToType
in classConsultant<ContextReference>
-
getActivatedEntities
Description copied from interface:ConsultantInterface
Get a list of currently highly salient entities that should be considered "activated."- Specified by:
getActivatedEntities
in interfaceConsultantInterface
- Overrides:
getActivatedEntities
in classConsultant<ContextReference>
- Returns:
- list of refIds and probability pairs
-
makeContextSalient
public void makeContextSalient(long id) -
getContextFromId
-
getSuccessFromRef
-
getStatusFromRef
-