Package edu.tufts.hrilab.action.db
Class ObserverDatabase
java.lang.Object
edu.tufts.hrilab.action.db.ObserverDatabase
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected so that only the Database can instantiate. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddObservationsToDB(ActionDBEntry entry) Add an action's observations to the database.final List<ActionDBEntry>getObservers(Predicate obs) Lookup observer by observation predicate.final List<ActionDBEntry>getObservers(Symbol actor, Predicate obs) final Set<ActionDBEntry>final Set<ActionDBEntry>protected voidRemove an action's observations from the database.
-
Constructor Details
-
ObserverDatabase
protected ObserverDatabase()Protected so that only the Database can instantiate.
-
-
Method Details
-
addObservationsToDB
Add an action's observations to the database. This should only be called internally when an ActionDBEntry is added.- Parameters:
entry- the action for which the observations should be added
-
removeObservationsFromDB
Remove an action's observations from the database. Should only be used internally.- Parameters:
entry- the action for which the observations should be removed
-
getObservers
Lookup observer by observation predicate.- Parameters:
obs- observation- Returns:
- list of observers for this observation
-
getObservers
-
getPrimitives
-
getScripts
-