Class ObserverDatabase

java.lang.Object
edu.tufts.hrilab.action.db.ObserverDatabase

public class ObserverDatabase extends Object
  • Constructor Details

    • ObserverDatabase

      protected ObserverDatabase()
      Protected so that only the Database can instantiate.
  • Method Details

    • addObservationsToDB

      protected void addObservationsToDB(ActionDBEntry entry)
      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

      protected void removeObservationsFromDB(ActionDBEntry entry)
      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

      public final List<ActionDBEntry> getObservers(Predicate obs)
      Lookup observer by observation predicate.
      Parameters:
      obs - observation
      Returns:
      list of observers for this observation
    • getObservers

      public final List<ActionDBEntry> getObservers(Symbol actor, Predicate obs)
    • getPrimitives

      public final Set<ActionDBEntry> getPrimitives()
    • getScripts

      public final Set<ActionDBEntry> getScripts()