Package edu.tufts.hrilab.ava.gui
Class AvaTaughtActionsAdapter
java.lang.Object
edu.tufts.hrilab.gui.GuiAdapter
edu.tufts.hrilab.ava.gui.AvaTaughtActionsAdapter
-
Field Summary
Fields inherited from class edu.tufts.hrilab.gui.GuiAdapter
groups, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringEnforce implementation of path root getter forgetPath().protected voidhandleMessage(com.google.gson.JsonObject message) Handle a message from the client.protected voidinit()Initialization after construction and after TRADE services are registered.protected booleanForce implementing classes to declare whether they provide TRADE services.voidMethods inherited from class edu.tufts.hrilab.gui.GuiAdapter
createAndRegisterInstance, getPath, sendMessage
-
Constructor Details
-
AvaTaughtActionsAdapter
-
-
Method Details
-
init
protected void init()Description copied from class:GuiAdapterInitialization after construction and after TRADE services are registered.- Overrides:
initin classGuiAdapter
-
providesTradeServices
protected boolean providesTradeServices()Description copied from class:GuiAdapterForce implementing classes to declare whether they provide TRADE services. This is to decide whether or not to register any new instances of that class with TRADE.- Specified by:
providesTradeServicesin classGuiAdapter- Returns:
- true iff the adapter provides TRADE services.
-
taughtActionsChanged
-
handleMessage
protected void handleMessage(com.google.gson.JsonObject message) Description copied from class:GuiAdapterHandle a message from the client.- Overrides:
handleMessagein classGuiAdapter- Parameters:
message- a JsonObject representing the message.
-
getPathRoot
Description copied from class:GuiAdapterEnforce implementation of path root getter forgetPath(). This is usually based on the component's/adapter's name; e.g., the belief GUI's path root isbelief.- Specified by:
getPathRootin classGuiAdapter- Returns:
- the path root as a
String.
-