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, visionTypes
Fields inherited from class edu.tufts.hrilab.consultant.Consultant
defaultProperties, kbName, log, propertiesHandled, refConstructor, references, 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, convertToGrasps, convertToType, getInitialDomain, getReferences, getReferences, getReferences, getTokenIds, getTokens, getTypeId, getVariable, loadReferencesFromFile, localConvertToType, localConvertToType, removeReference, setTypeId, writeReferencesToFile
Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addPropertiesHandled, addReference, convertToType, convertToType, createReference, createReferences, getAssertedProperties, getKBName, getNextReferenceId, getPropertiesHandled, getReference, getReferenceSummaries, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, registerForNewPropertyNotification, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotification
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ConsultantInterface
Get a list of currently highly salient entities that should be considered "activated."- Specified by:
getActivatedEntities
in interfaceConsultantInterface
- Overrides:
getActivatedEntities
in classConsultant<VisionReference>
- Returns:
- list of refIds and probability pairs
-
process
Description copied from interface:ConsultantInterface
Returns 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:
process
in interfaceConsultantInterface
- Overrides:
process
in classConsultant<VisionReference>
- Parameters:
constraint
- Property to checkbindings
- Map of free variables to refIds- Returns:
- probability value [0.0. 1.0]
-