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
- 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,
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,
obtainMetaglueAgent,
obtainMetaglueAgent,
obtainMetaglueAgentByName,
reliesOn,
reliesOn,
reliesOn,
reliesOnSynch,
removeFrozen,
replaceExceptionHandler,
setFreezeName,
setLogLevel,
setLogName,
shutdown,
startAgent,
startAgentOn,
startAgentOn,
startup,
status,
tiedTo,
tiedTo,
tiedTo,
tiedTo,
tieToDesignation,
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