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, refNumber -
Constructor Summary
ConstructorsConstructorDescriptionTemiV3PoseConsultant(Class<TemiV3PoseReference> refClass, String kbName, List<String> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivatedEntity(Symbol refId) voidbooleanaddPropertiesHandled(List<Term> properties) Updates consultant and parser if any of the members of @properties are not already handled by the ConsultantbooleanassertProperties(Symbol refId, List<Term> properties) Add properties to already existing object ref.booleanan 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 SymbolHelper method to generate next unique reference ID (e.g., object_3).<U> UlocalConvertToType(Symbol refId, Class<U> type) The local implementation of convertToType.<U> UlocalConvertToType(Symbol refId, Class<U> type, List<? extends Term> constraints) The local implementation of convertToType.booleanremoveActivatedEntity(Symbol refId) removeReference(Symbol refId) Remove known reference from the consultant.toString()Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addReference, convertToType, convertToType, createReference, createReferences, getAllReferences, getAssertedProperties, getInitialDomain, getKBName, getPropertiesHandled, getReference, getReferenceSummaries, 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:ConsultantHelper method to generate next unique reference ID (e.g., object_3).- Overrides:
getNextReferenceIdin classConsultant<TemiV3PoseReference>- Returns:
- unique reference ID
-
localConvertToType
Description copied from class:ConsultantThe local implementation of convertToType.- Specified by:
localConvertToTypein classConsultant<TemiV3PoseReference>- 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<TemiV3PoseReference>- 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
-
toString
-
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<TemiV3PoseReference>- Returns:
- list of refIds and probability pairs
-
assertProperties
Description copied from interface:ConsultantInterfacean attempt is made to bring the knowledge base in line with the provided bindings, list of properties, and probability value.- Specified by:
assertPropertiesin interfaceConsultantInterface- Overrides:
assertPropertiesin 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:ConsultantInterfaceAdd properties to already existing object ref. Each property should contain a connection to the existing reference either by refId or refId's variable.- Specified by:
assertPropertiesin interfaceConsultantInterface- Overrides:
assertPropertiesin classConsultant<TemiV3PoseReference>- Parameters:
refId- referenceproperties- reference properties- Returns:
- if property was successfully added to reference refId
-
addPropertiesHandled
Description copied from class:ConsultantUpdates consultant and parser if any of the members of @properties are not already handled by the Consultant- Overrides:
addPropertiesHandledin classConsultant<TemiV3PoseReference>- Parameters:
properties- list of candidate properties- Returns:
- true if propertiesHandled is modified
-
removeActivatedEntity
-
removeReference
Description copied from class:ConsultantRemove known reference from the consultant.- Overrides:
removeReferencein classConsultant<TemiV3PoseReference>- Parameters:
refId- unique reference ID- Returns:
- removed Reference or null if it doesn't exist
-
addActivatedEntity
-
getLocationReferenceFromName
-
addLocation
-