Class MockVisionConsultant
java.lang.Object
edu.tufts.hrilab.consultant.Consultant<VisionReference>
edu.tufts.hrilab.vision.consultant.VisionConsultant
edu.tufts.hrilab.vision.consultant.MockVisionConsultant
- All Implemented Interfaces:
ConsultantInterface,VisionConsultantInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.vision.consultant.VisionConsultant
visionComponent, visionTypesFields inherited from class edu.tufts.hrilab.consultant.Consultant
defaultProperties, kbName, log, propertiesHandled, refConstructor, refNumber -
Constructor Summary
ConstructorsConstructorDescriptionMockVisionConsultant(VisionInterface visionComponent, String kbName, SceneCollection sceneCollection) -
Method Summary
Modifier and TypeMethodDescriptionGet a list of currently highly salient entities that should be considered "activated."Returns the probability that a property (aka constraint) holds for an entity (specified by a map of free-variable to refId bindings).Methods inherited from class edu.tufts.hrilab.vision.consultant.VisionConsultant
assertProperties, assertProperties, convertToType, getInitialDomain, getReferences, getReferences, getTokenIds, getTokens, getTypeId, getVariable, loadReferencesFromFile, localConvertToType, localConvertToType, setTypeId, writeReferencesToFileMethods inherited from class edu.tufts.hrilab.consultant.Consultant
addPropertiesHandled, addReference, convertToType, convertToType, createReference, createReferences, getAllReferences, getAssertedProperties, getKBName, getNextReferenceId, getPropertiesHandled, getReference, getReferenceSummaries, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, registerForNewPropertyNotification, removeReference, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.tufts.hrilab.interfaces.ConsultantInterface
convertToType, convertToType, createReferences, getAssertedProperties, getKBName, getPropertiesHandled, notifyNewPropertySubscribers, registerForNewPropertyNotification, unregisterForNewPropertyNotification
-
Constructor Details
-
MockVisionConsultant
public MockVisionConsultant(VisionInterface visionComponent, String kbName, SceneCollection sceneCollection)
-
-
Method Details
-
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<VisionReference>- Returns:
- list of refIds and probability pairs
-
process
Description copied from interface:ConsultantInterfaceReturns the probability that a property (aka constraint) holds for an entity (specified by a map of free-variable to refId bindings).TODO: rename method to something more descriptive. how about getProbability or checkProperty?
- Specified by:
processin interfaceConsultantInterface- Overrides:
processin classConsultant<VisionReference>- Parameters:
constraint- Property to checkbindings- Map of free variables to refIds- Returns:
- probability value [0.0. 1.0]
-