agentland.debug
Class AgentMonitorAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.debug.AgentMonitorAgent
All Implemented Interfaces:
Agent, AgentMonitor, MetagluePrimitives, Remote, Serializable

public class AgentMonitorAgent
extends AgentAgent
implements AgentMonitor

4.21.01 - This code was ripped off from agentland.util.AgentMonitor(A utility of LogMonitor) to become it's own agent to facilitate instances where only one agent is being watched, particularly from inside AgentTester This class is a window which monitors an individual agent's log messages. By design, this is pretty tightly integrated with the LogMonitorAgent and can probably not be used independantly without heavy hacking. The only real way to do this would be to make this an Agent, which increases overhead costs quite a bit - so I'm introducing an intermediate method distribution layer between the LogMonitor and the Agent Monitor

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
AgentMonitorAgent()
          Does metaglue and final variable initialization only.
 
Method Summary
 void reconnect()
           
 void searchFor(String msg)
           
 void setForeward(boolean val)
           
 void setSubject(AgentID SUBJECT)
           
 void setupFrame()
           
 void tell(int lvl, String msg)
           
 void tell(Secret sekrit)
          This logs an individual message to the screen 4.10.01 - modified by nick This now actually processes the sekrit to get loglevel, which should have been done before.
 
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, 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 metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 

Constructor Detail

AgentMonitorAgent

public AgentMonitorAgent()
                  throws RemoteException
Does metaglue and final variable initialization only. The agent doesn't really start until it gets a setSubject() call. The agent will try to start with it's occupation as the subject.
Method Detail

reconnect

public void reconnect()

setSubject

public void setSubject(AgentID SUBJECT)
                throws RemoteException
Specified by:
setSubject in interface AgentMonitor

tell

public void tell(Secret sekrit)
This logs an individual message to the screen 4.10.01 - modified by nick This now actually processes the sekrit to get loglevel, which should have been done before. Oops.
Specified by:
tell in interface AgentMonitor

tell

public void tell(int lvl,
                 String msg)

setupFrame

public void setupFrame()

setForeward

public void setForeward(boolean val)

searchFor

public void searchFor(String msg)