agentland.games.boggle
Class GuiBoggleServerAgent

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
                                            |
                                            +--agentland.games.boggle.GuiBoggleServerAgent
All Implemented Interfaces:
Agent, Boggle, BoggleServer, Good, GuiBoggle, GuiBoggleServer, Managed, MetagluePrimitives, Remote, Serializable, Spy

public class GuiBoggleServerAgent
extends GuiBoggleAgent
implements GuiBoggleServer

Just a GUI wrapper for a BoggleServer. Look at the GuiBoggleAgent and the BoggleServerAgent, for all methods are parallel.

See Also:
GuiBoggleAgent, GuiBoggleServer, Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  BoggleServer me
           
 
Fields inherited from class agentland.games.boggle.GuiBoggleAgent
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
GuiBoggleServerAgent()
          Creates a new GuiBoggleServerAgent instance.
 
Method Summary
 boolean addClient(AgentID client)
           
 Collection clients()
           
 Board getBoard()
           
 boolean removeClient(AgentID client)
           
 void show()
          Displays the representation of the BoggleServer.
 int timeLeft()
           
 
Methods inherited from class agentland.games.boggle.GuiBoggleAgent
getGMD
 
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
getGMD
 
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

me

protected BoggleServer me
Constructor Detail

GuiBoggleServerAgent

public GuiBoggleServerAgent()
                     throws RemoteException
Creates a new GuiBoggleServerAgent instance. When created, the GUI relies on the BoggleServer pointed to by the AgentID Society:agentland.games.boggle .BoggleServer-Designation, where Society: and -Designation are the same as this.
Throws:
RemoteException - if an error occurs
Method Detail

show

public void show()
          throws RemoteException
Displays the representation of the BoggleServer.
Specified by:
show in interface GuiBoggle
Throws:
RemoteException - if an error occurs

clients

public Collection clients()
                   throws RemoteException
Specified by:
clients in interface BoggleServer

addClient

public boolean addClient(AgentID client)
                  throws RemoteException
Specified by:
addClient in interface BoggleServer

removeClient

public boolean removeClient(AgentID client)
                     throws RemoteException
Specified by:
removeClient in interface BoggleServer

timeLeft

public int timeLeft()
             throws RemoteException
Specified by:
timeLeft in interface Boggle

getBoard

public Board getBoard()
               throws RemoteException
Specified by:
getBoard in interface Boggle