java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.mit.media.hive.agent.AgentImpl
edu.mit.media.hive.agent.EventReceivingAgentImpl
edu.mit.media.hive.agent.hiveui.BaseUIAgentImpl
edu.mit.media.hive.agent.hiveui.BaseGUIAgentImpl
edu.mit.media.hive.agent.hiveui.BaseAWTGUIAgentImpl
- All Implemented Interfaces:
- edu.mit.media.hive.agent.Agent, edu.mit.media.hive.rdf.Describable, java.util.EventListener, edu.mit.media.hive.agent.EventReceivingAgent, java.rmi.Remote, edu.mit.media.hive.event.RemoteEventListener, java.io.Serializable
- public abstract class BaseAWTGUIAgentImpl
- extends BaseGUIAgentImpl
this class is the next level up on top of the base ui agent -- the
purpose of this is so we have a standard way to get the popup boxes
that we like
Fields inherited from class edu.mit.media.hive.agent.hiveui.BaseUIAgentImpl |
ag, agentAddresses, ama, cellControlAgents, changeMonitoringCellCmd, changeShowCellAgentsCmd, connectCmd, defaultCellCmds, defaultCmds, disconnectAllCmd, disconnectCmd, killCellCmd, killCmd, menu, monitoredCells, moveCmd, propertiesCmd, variablePropertyManipulators |
Fields inherited from class edu.mit.media.hive.agent.AgentImpl |
AGENTKILLED, AGENTMOVED, agentThreadGroup, commandList, commands, description, icon, iconName, myCell, readyFlag, stopCode, timeToStop |
Methods inherited from class edu.mit.media.hive.agent.hiveui.BaseUIAgentImpl |
connectAgentsCommand, createNewAgentCommand, disconnectAgentAllCommand, disconnectAgentsCommand, doLocalCleanup, getAccessibleVariable, getAccessibleVariableNames, getAccessibleVariableType, getAgentAddress, getAgentIcon, getAgentName, getCellAddress, getMenuNames, getMonitoredCells, invokeCellMenuCommand, killAgentCommand, monitorCell, moveAgentCommand, notify, renderAgentMessage, renderCellReport, renderConnectAgents, renderDisconnectAgents, renderDisconnectFromAll, renderNewAgent, renderRemoveAgent, setAccessibleVariable, shutdownCellCommand, stopMonitoringCell |
Methods inherited from class edu.mit.media.hive.agent.AgentImpl |
addActionCommand, blockUntilReady, configure, doBehaviour, getActionCommands, getCell, getComponentManagerShadow, getDescription, getIcon, getIconName, getName, getThreadGroup, invokeActionCommand, isReady, isTimeToStop, listAllOutgoingConnections, loadIcon, moveTo, onDying, onMoving, setCell, setDescription, setIconName, setIsReady, setThreadGroup, setTimeToStop, waitUntilDeath |
cms
protected edu.mit.media.hive.shadow.cell.ComponentManagerShadow cms
- a handle to the CMS so we don't need to look it up every time.
BaseAWTGUIAgentImpl
public BaseAWTGUIAgentImpl()
throws java.rmi.RemoteException
doLocalSetup
public void doLocalSetup()
- do our local setup which just involves letting the BaseUIAgent
do its stuff, and then we can lookup our agent component
manager shadow
- Overrides:
doLocalSetup
in class BaseGUIAgentImpl
doBehavior
public void doBehavior()
- Description copied from class:
edu.mit.media.hive.agent.AgentImpl
- Do the basic behavior for an agent, the agent's main loop.
Override this to provide your particular agent's behavior.
Note: the doBehavior loop should not exit. Please call
waitUntilDeath() at the end of this method, this will prevent
the Cell from believing this agent prematurely exited.
- Overrides:
doBehavior
in class BaseGUIAgentImpl
constructMenus
protected void constructMenus()
- a helper function that reads the RDF files and stuff and
creates the default menus that we are going to use
- Overrides:
constructMenus
in class BaseGUIAgentImpl
getMenuBar
public java.awt.MenuBar getMenuBar()
- a function that will return an AWT menu that is constructed off
the information that is in the menu object
createMenuItem
private java.awt.MenuItem createMenuItem(edu.mit.media.hive.support.menu.MenuElement me)
- recursive function meant for creating the menu items
showShutdownCellDialogBox
public void showShutdownCellDialogBox()
- method to bring up a dialog box containing which servers we
want to shut down
- Specified by:
showShutdownCellDialogBox
in class BaseGUIAgentImpl
showStartMonitorCellDialogBox
public void showStartMonitorCellDialogBox()
- method to bring up a dialog box to start monitoring another cell
- Specified by:
showStartMonitorCellDialogBox
in class BaseGUIAgentImpl
showStopMonitorCellDialogBox
public void showStopMonitorCellDialogBox()
- method to bring up a dialog box containing which server we want
to stop monitoring
- Specified by:
showStopMonitorCellDialogBox
in class BaseGUIAgentImpl
showCreateAgentByNameDialogBox
public void showCreateAgentByNameDialogBox()
- method to bring up a dialog box to create an agent by its java
class name
- Specified by:
showCreateAgentByNameDialogBox
in class BaseGUIAgentImpl
showCreateAgentDialogBox
public void showCreateAgentDialogBox(java.lang.String agent)
- method to bring up the dialog box with the agent icon and stuff like that
- Specified by:
showCreateAgentDialogBox
in class BaseGUIAgentImpl
showMoveAgentDialogBox
public void showMoveAgentDialogBox(edu.mit.media.hive.agent.Agent agent)
- method to bring up the dialog box with the agent icon for movement
- Specified by:
showMoveAgentDialogBox
in class BaseGUIAgentImpl
showConfigureAgentDialogBox
public void showConfigureAgentDialogBox(edu.mit.media.hive.agent.Agent agent)
- method to bring up a variable sheet editor
- Specified by:
showConfigureAgentDialogBox
in class BaseGUIAgentImpl