Package edu.tufts.hrilab.spot.consultant
Class SpotNavGraphLocationConsultant
java.lang.Object
edu.tufts.hrilab.consultant.Consultant<SpotNavGraphLocationReference>
edu.tufts.hrilab.spot.consultant.SpotNavGraphLocationConsultant
- All Implemented Interfaces:
ConsultantInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.consultant.Consultant
defaultProperties, kbName, log, propertiesHandled, refConstructor, references, refNumber
-
Constructor Summary
ConstructorsConstructorDescriptionSpotNavGraphLocationConsultant
(Class<SpotNavGraphLocationReference> refClass, String kbName) SpotNavGraphLocationConsultant
(Class<SpotNavGraphLocationReference> refClass, String kbName, List<String> properties) -
Method Summary
Modifier and TypeMethodDescriptiongetRefWithId
(Symbol refId) void
loadReferencesFromFile
(String dir, String filename) Load pre-defined references from file via JSON.protected <U> U
localConvertToType
(Symbol refId, Class<U> type) protected <U> U
localConvertToType
(Symbol refId, Class<U> type, List<? extends Term> constraints) Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addPropertiesHandled, addReference, assertProperties, assertProperties, convertToType, convertToType, createReference, createReferences, getActivatedEntities, getAssertedProperties, getInitialDomain, getKBName, getNextReferenceId, getPropertiesHandled, getReference, getReferenceSummaries, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, process, registerForNewPropertyNotification, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotification
-
Constructor Details
-
SpotNavGraphLocationConsultant
-
SpotNavGraphLocationConsultant
public SpotNavGraphLocationConsultant(Class<SpotNavGraphLocationReference> refClass, String kbName, List<String> properties)
-
-
Method Details
-
localConvertToType
- Specified by:
localConvertToType
in classConsultant<SpotNavGraphLocationReference>
-
localConvertToType
- Specified by:
localConvertToType
in classConsultant<SpotNavGraphLocationReference>
-
getRefWithId
-
loadReferencesFromFile
Load pre-defined references from file via JSON.- Parameters:
dir
-filename
-
-