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
Constructor Summary |
AgentMonitorAgent()
Does metaglue and final variable initialization only. |
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 |
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.
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)