Class GoalManagerNotifier

java.lang.Object
edu.tufts.hrilab.action.notification.GoalManagerNotifier
All Implemented Interfaces:
DatabaseListener, GoalListener

public class GoalManagerNotifier extends Object implements DatabaseListener, GoalListener
Notification mechanism for the GoalManagerComponent. Each NotificationType has an expected callback signature: GOAL_STATUS_CHANGE: callBackService(GoalInfo info); DATABASE_ADDITION: callBackService(ActionDBEntry dbEntry); DATABASE_REMOVAL: callBackService(ActionDBEntry dbEntry);
  • Constructor Details

    • GoalManagerNotifier

      public GoalManagerNotifier()
  • Method Details

    • registerNotification

      public void registerNotification(ai.thinkingrobots.trade.TRADEServiceInfo callback, NotificationType type)
    • unregisterNotification

      public void unregisterNotification(ai.thinkingrobots.trade.TRADEServiceInfo callback, NotificationType type)
    • actionAdded

      public void actionAdded(ActionDBEntry adb)
      Description copied from interface: DatabaseListener
      Called whenever an action is added to the database.
      Specified by:
      actionAdded in interface DatabaseListener
      Parameters:
      adb - action added to the database.
    • actionRemoved

      public void actionRemoved(ActionDBEntry adb)
      Description copied from interface: DatabaseListener
      Called whenever an action is removed from the database.
      Specified by:
      actionRemoved in interface DatabaseListener
      Parameters:
      adb - action removed.
    • goalStatusChanged

      public void goalStatusChanged(GoalInfo info)
      Specified by:
      goalStatusChanged in interface GoalListener