Package edu.tufts.hrilab.spot.consultant
Class SpotLocationConsultant
java.lang.Object
edu.tufts.hrilab.consultant.Consultant<SpotLocationReference>
edu.tufts.hrilab.spot.consultant.SpotLocationConsultant
- All Implemented Interfaces:
ConsultantInterface
-
Field Summary
Fields inherited from class edu.tufts.hrilab.consultant.Consultant
defaultProperties, kbName, log, propertiesHandled, refConstructor, references, refNumber -
Constructor Summary
ConstructorsConstructorDescriptionSpotLocationConsultant(Class<SpotLocationReference> refClass, String kbName, List<String> properties) SpotLocationConsultant(String kbName) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateReferenceWithWaypointId(String waypointId, Symbol property) getClosestLocationToPoint(org.apache.commons.lang3.tuple.Pair<javax.vecmath.Point2d, javax.vecmath.Quat4d> pose) getRefWithId(Symbol refId) voidloadReferencesFromFile(String filename) Load pre-defined references from file via JSON.protected <U> UlocalConvertToType(Symbol refId, Class<U> type) The local implementation of convertToType.protected <U> UlocalConvertToType(Symbol refId, Class<U> type, List<? extends Term> constraints) The local implementation of convertToType.booleanwriteReferencesToFile(String absolutePath) Methods inherited from class edu.tufts.hrilab.consultant.Consultant
addPropertiesHandled, addReference, assertProperties, assertProperties, convertToType, convertToType, createReference, createReferences, getActivatedEntities, getAllReferences, getAssertedProperties, getInitialDomain, getKBName, getNextReferenceId, getPropertiesHandled, getReference, getReferenceSummaries, getReferencesWithAllProperties, getReferencesWithAnyProperties, notifyNewPropertySubscribers, process, registerForNewPropertyNotification, removeReference, retractProperties, stripQuotesFromMorpheme, unregisterForNewPropertyNotification
-
Constructor Details
-
SpotLocationConsultant
-
SpotLocationConsultant
public SpotLocationConsultant(Class<SpotLocationReference> refClass, String kbName, List<String> properties)
-
-
Method Details
-
localConvertToType
Description copied from class:ConsultantThe local implementation of convertToType.- Specified by:
localConvertToTypein classConsultant<SpotLocationReference>- 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<SpotLocationReference>- 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
-
getRefWithId
-
getClosestLocationToPoint
public Symbol getClosestLocationToPoint(org.apache.commons.lang3.tuple.Pair<javax.vecmath.Point2d, javax.vecmath.Quat4d> pose) -
loadReferencesFromFile
Load pre-defined references from file via JSON.- Parameters:
filename-
-
writeReferencesToFile
-
createReferenceWithWaypointId
-