Package edu.tufts.hrilab.temiv3
Class TemiV3PoseConsultant
java.lang.Object
edu.tufts.hrilab.consultant.Consultant<TemiV3PoseReference>
edu.tufts.hrilab.temiv3.TemiV3PoseConsultant
- All Implemented Interfaces:
ConsultantInterface
-
Field Summary
FieldsFields inherited from class edu.tufts.hrilab.consultant.Consultant
defaultProperties, kbName, log, propertiesHandled, refConstructor, references, refNumber
-
Constructor Summary
ConstructorsConstructorDescriptionTemiV3PoseConsultant
(Class<TemiV3PoseReference> refClass, String kbName, List<String> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActivatedEntity
(Symbol refId) void
boolean
addPropertiesHandled
(List<Term> properties) Updates consultant and parser if any of the members of @properties are not already handled by the Consultantboolean
assertProperties
(Symbol refId, List<Term> properties) Add properties to already existing object ref.boolean
an attempt is made to bring the knowledge base in line with the provided bindings, list of properties, and probability value.Get a list of currently highly salient entities that should be considered "activated."protected Symbol
Helper method to generate next unique reference ID (e.g., object_3).<U> U
localConvertToType
(Symbol refId, Class<U> type) <U> U
localConvertToType
(Symbol refId, Class<U> type, List<? extends Term> constraints) boolean
removeActivatedEntity
(Symbol refId) void
removeReference
(Symbol refId) toString()
Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addReference, convertToType, convertToType, createReference, createReferences, getAssertedProperties, getInitialDomain, getKBName, getPropertiesHandled, getReference, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, process, registerForNewPropertyNotification, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotification
-
Field Details
-
poseRefNumber
protected static int poseRefNumber
-
-
Constructor Details
-
TemiV3PoseConsultant
public TemiV3PoseConsultant(Class<TemiV3PoseReference> refClass, String kbName, List<String> properties)
-
-
Method Details
-
getNextReferenceId
Description copied from class:Consultant
Helper method to generate next unique reference ID (e.g., object_3).- Overrides:
getNextReferenceId
in classConsultant<TemiV3PoseReference>
- Returns:
-
localConvertToType
- Specified by:
localConvertToType
in classConsultant<TemiV3PoseReference>
-
localConvertToType
- Specified by:
localConvertToType
in classConsultant<TemiV3PoseReference>
-
getReferenceSummaries
- Overrides:
getReferenceSummaries
in classConsultant<TemiV3PoseReference>
-
toString
-
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<TemiV3PoseReference>
- Returns:
- list of refIds and probability pairs
-
assertProperties
Description copied from interface:ConsultantInterface
an attempt is made to bring the knowledge base in line with the provided bindings, list of properties, and probability value.- Specified by:
assertProperties
in interfaceConsultantInterface
- Overrides:
assertProperties
in classConsultant<TemiV3PoseReference>
- Parameters:
bindings
- list of bindings in tuple form (free-variable and refId pair)prob
- probability valueproperties
- list of Properties- Returns:
- whether the updated was successful?
-
assertProperties
Description copied from interface:ConsultantInterface
Add properties to already existing object ref. Each property should contain a connection to the existing ref either by refId or refId's variable.- Specified by:
assertProperties
in interfaceConsultantInterface
- Overrides:
assertProperties
in classConsultant<TemiV3PoseReference>
- Returns:
-
addPropertiesHandled
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 classConsultant<TemiV3PoseReference>
- Parameters:
properties
- list of candidate properties- Returns:
- true if propertiesHandled is modified
-
removeActivatedEntity
-
removeReference
-
addActivatedEntity
-
getLocationReferenceFromName
-
addLocation
-