agentland.device.computer
Class ComputerIDResolverAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.device.computer.ComputerIDResolverAgent
All Implemented Interfaces:
Agent, ComputerIDResolver, Good, MetagluePrimitives, Remote, Serializable, Spy

public class ComputerIDResolverAgent
extends GoodAgent
implements ComputerIDResolver

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  PersistentMap compSocieties
           
protected  Resolver resolver
           
 
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
ComputerIDResolverAgent()
           
 
Method Summary
 boolean addComputerToSociety(InetAddress computerAddress, String society)
           
 boolean addComputerToSociety(String computerName, String society)
           
 AgentID getComputerID(InetAddress computerAddress)
           
 AgentID getComputerID(String computerName)
           
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getAlert, 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, reliesOn, 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.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

resolver

protected Resolver resolver

compSocieties

protected PersistentMap compSocieties
Constructor Detail

ComputerIDResolverAgent

public ComputerIDResolverAgent()
                        throws RemoteException
Method Detail

getComputerID

public AgentID getComputerID(String computerName)
                      throws RemoteException
Specified by:
getComputerID in interface ComputerIDResolver

getComputerID

public AgentID getComputerID(InetAddress computerAddress)
                      throws RemoteException
Specified by:
getComputerID in interface ComputerIDResolver

addComputerToSociety

public boolean addComputerToSociety(String computerName,
                                    String society)
                             throws RemoteException
Specified by:
addComputerToSociety in interface ComputerIDResolver

addComputerToSociety

public boolean addComputerToSociety(InetAddress computerAddress,
                                    String society)
                             throws RemoteException
Specified by:
addComputerToSociety in interface ComputerIDResolver