agentland.debug
Class PowerTesterAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.debug.AgentTesterAgent
                                |
                                +--agentland.debug.PowerTesterAgent
All Implemented Interfaces:
Agent, AgentTester, AgentTesterCommunication, MetagluePrimitives, PowerTester, Remote, Serializable

public class PowerTesterAgent
extends AgentTesterAgent
implements PowerTester

PowerTester agent The Intelligent Room/HAL Project MIT Artificial Intelligence Laboratory Cambridge, MA This extends AgentTester and gives some extra stuff, like loaded mess scripts from the little box thing.

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  Vector callHistory
           
protected  JComboBox historyBox
           
protected  JPanel historyPanel
           
protected  JPanel mainPanel
           
protected  int maxHistorySize
           
 
Fields inherited from class agentland.debug.AgentTesterAgent
HELP_MESSAGE
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
PowerTesterAgent()
           
 
Method Summary
 void bootScript(String script)
           
protected  Container createHistoryPanel()
           
protected  void defrostHistory()
          Defrostring stuff always requires a bit of care -- the stuff may not be there or it may be of a different type.
protected  String getHelpMessage()
           
protected  JPanel getTesterPanel()
          Overrides method in AgentTester -- adds an extra pull-down menu with history
protected  String macroExpand(String s)
           
 void popupRelyOn(String entered_name)
          when the mouse is pressed on the PowerTesterFrame, this method is called with the string in the text box, so that MethodList can be invoked.
 void resourceRely(String onWhat)
           
protected  void updateCallHistory(String s)
          Adds a new string to the history
protected  void updateDisplay()
           
 
Methods inherited from class agentland.debug.AgentTesterAgent
fetchAgentCode, generateAgentCode, removeAgentCode
 
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
 

Field Detail

callHistory

protected Vector callHistory

maxHistorySize

protected int maxHistorySize

historyBox

protected JComboBox historyBox

mainPanel

protected JPanel mainPanel

historyPanel

protected JPanel historyPanel
Constructor Detail

PowerTesterAgent

public PowerTesterAgent()
                 throws RemoteException
Method Detail

defrostHistory

protected void defrostHistory()
Defrostring stuff always requires a bit of care -- the stuff may not be there or it may be of a different type. 've gotta chack for that.

getTesterPanel

protected JPanel getTesterPanel()
Overrides method in AgentTester -- adds an extra pull-down menu with history
Overrides:
getTesterPanel in class AgentTesterAgent

createHistoryPanel

protected Container createHistoryPanel()

updateDisplay

protected void updateDisplay()

popupRelyOn

public void popupRelyOn(String entered_name)
when the mouse is pressed on the PowerTesterFrame, this method is called with the string in the text box, so that MethodList can be invoked.
Overrides:
popupRelyOn in class AgentTesterAgent

bootScript

public void bootScript(String script)

resourceRely

public void resourceRely(String onWhat)

macroExpand

protected String macroExpand(String s)

getHelpMessage

protected String getHelpMessage()
Overrides:
getHelpMessage in class AgentTesterAgent

updateCallHistory

protected void updateCallHistory(String s)
Adds a new string to the history