Class GoalManagerNotifier
java.lang.Object
edu.tufts.hrilab.action.notification.GoalManagerNotifier
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionAdded(ActionDBEntry adb) Called whenever an action is added to the database.voidCalled whenever an action is removed from the database.voidgoalStatusChanged(GoalInfo info) voidregisterNotification(ai.thinkingrobots.trade.TRADEServiceInfo callback, NotificationType type) voidunregisterNotification(ai.thinkingrobots.trade.TRADEServiceInfo callback, NotificationType type)
-
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
Description copied from interface:DatabaseListenerCalled whenever an action is added to the database.- Specified by:
actionAddedin interfaceDatabaseListener- Parameters:
adb- action added to the database.
-
actionRemoved
Description copied from interface:DatabaseListenerCalled whenever an action is removed from the database.- Specified by:
actionRemovedin interfaceDatabaseListener- Parameters:
adb- action removed.
-
goalStatusChanged
- Specified by:
goalStatusChangedin interfaceGoalListener
-