agentland.util
Class AgentMonitor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--agentland.util.AgentMonitor
All Implemented Interfaces:
Runnable

public class AgentMonitor
extends Thread

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


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AgentMonitor(LogMonitorAgent PARENT, AgentID SUBJECT)
          Makes this to be a new window which monitors the log data sent by SUBJECT
 
Method Summary
 void addList(List inp)
           
 void run()
           
 void searchFor(String msg)
           
 void setForeward(boolean val)
           
 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 java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentMonitor

public AgentMonitor(LogMonitorAgent PARENT,
                    AgentID SUBJECT)
             throws RemoteException
Makes this to be a new window which monitors the log data sent by SUBJECT
Method Detail

addList

public void addList(List inp)

run

public void run()
Overrides:
run in class Thread

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.

tell

public void tell(int lvl,
                 String msg)

setupFrame

public void setupFrame()

setForeward

public void setForeward(boolean val)

searchFor

public void searchFor(String msg)