agentland.games.boggle
Class GuiBoggleAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--agentland.games.boggle.GuiBoggleAgent
All Implemented Interfaces:
Agent, Good, GuiBoggle, Managed, MetagluePrimitives, Remote, Serializable, Spy
Direct Known Subclasses:
GuiBoggleClientAgent, GuiBoggleServerAgent

public abstract class GuiBoggleAgent
extends ManagedAgent
implements GuiBoggle

This agent is responsible for handling most interactions with the GuiManagerDaemon that is reposnsible for drawing it on the screen.

See Also:
ManagedAgent, GuiBoggle, Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  GuiManagerDaemon gmd
           
 
Fields inherited from class agentland.resource.ManagedAgent
rm, society
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
GuiBoggleAgent()
          Creates a new GuiBoggleAgent instance which relies on a default GuiManagerDaemon.
GuiBoggleAgent(AgentID gmdID)
          Creates a new GuiBoggleAgent instance which relies on a specified GuiManagerDaemon.
 
Method Summary
 AgentID getGMD()
          Allows access to the GuiManagerDaemon that is responsible for this.
 
Methods inherited from class agentland.resource.ManagedAgent
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface agentland.games.boggle.GuiBoggle
show
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Field Detail

gmd

protected GuiManagerDaemon gmd
Constructor Detail

GuiBoggleAgent

public GuiBoggleAgent()
               throws RemoteException
Creates a new GuiBoggleAgent instance which relies on a default GuiManagerDaemon.
Throws:
RemoteException - if an error occurs

GuiBoggleAgent

public GuiBoggleAgent(AgentID gmdID)
               throws RemoteException
Creates a new GuiBoggleAgent instance which relies on a specified GuiManagerDaemon.
Parameters:
gmdID - The AgentID of the GuiManagerDaemon to control the GUI management of this.
Throws:
RemoteException - if an error occurs
Method Detail

getGMD

public AgentID getGMD()
               throws RemoteException
Allows access to the GuiManagerDaemon that is responsible for this.
Specified by:
getGMD in interface GuiBoggle
Returns:
AgentID of self's GuiManagerDaemon.
Throws:
RemoteException - if an error occurs