agentland.util
Class AgentMonitor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--agentland.util.AgentMonitor

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(LogMonitor PARENT, AgentID SUBJECT)
          Makes this to be a new window which monitors the log data sent by SUBJECT
 
Method Summary
static void main(String[] argv)
           
 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
 
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(LogMonitor PARENT,
                    AgentID SUBJECT)
             throws RemoteException
Makes this to be a new window which monitors the log data sent by SUBJECT
Method Detail

main

public static void main(String[] argv)

run

public void run()
Overrides:
run in class Thread

tell

public void tell(Secret sekrit)
This logs an individual message to the screen

tell

public void tell(int lvl,
                 String msg)

setupFrame

public void setupFrame()

setForeward

public void setForeward(boolean val)

searchFor

public void searchFor(String msg)