agentland.util
Class LoggerAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.util.LoggerAgent
- All Implemented Interfaces:
- Agent, Good, Logger, MetagluePrimitives, Remote, Serializable, Spy
- public class LoggerAgent
- extends GoodAgent
- implements Logger
- See Also:
- Serialized Form
Methods inherited from class agentland.util.GoodAgent |
addSpy, addSpy, alert, alertString, beep, error, getAlert, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell |
Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
LoggerAgent
public LoggerAgent()
throws RemoteException
makeFileName
protected String makeFileName(String fn)
- Unless absolute path, add the portablefilesystem beginning
path to the name.
getFilePrefix
protected String getFilePrefix()
printLog
public void printLog()
throws RemoteException
- Specified by:
printLog
in interface Logger
grabLog
public Vector grabLog()
throws RemoteException
- not get, but grab since getLog is a java.rmi.server.RemoteServer
method.
- Specified by:
grabLog
in interface Logger
stash
public void stash(Object str)
- log passed object _by calling the toString() method_
- Specified by:
stash
in interface Logger
stash
public void stash(String str)
- Specified by:
stash
in interface Logger