decisionMakingSystem
Class DMSLogger

Package class diagram package DMSLogger
java.lang.Object
  extended by decisionMakingSystem.DMSLogger
All Implemented Interfaces:
FileLog

public class DMSLogger
extends Object
implements FileLog

DMSLogger logs agents activity to a file. The output is quite simple. It logs just a time and a name of an action and its status - started, interrupted, finished, failed.

Author:
Ondrej

Constructor Summary
DMSLogger(Logger log, String filename)
           
 
Method Summary
 void cleanUp()
          Called after the end of agent's life.
 void logToFile(String text)
           
 void logToFilePlainText(String text)
           
 void update(DMSMemoryVO memoryVO)
          This method should be called after every step of the logic.
 void writeAMessage(String message)
          Enables to write a certain message from the DMS to the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMSLogger

public DMSLogger(Logger log,
                 String filename)
Method Detail

update

public void update(DMSMemoryVO memoryVO)
This method should be called after every step of the logic. It accepts the result of the step - DMSMemoryVO and logs a message to the file if necessary. So far we are not logging SEARCH messages as they are many.

Parameters:
memoryVO -

writeAMessage

public void writeAMessage(String message)
Enables to write a certain message from the DMS to the file.

Parameters:
message -

cleanUp

public void cleanUp()
Called after the end of agent's life. Close the log file.

Specified by:
cleanUp in interface FileLog
See Also:
episodibot.Main.shutdownAgent()

logToFile

public void logToFile(String text)
Specified by:
logToFile in interface FileLog

logToFilePlainText

public void logToFilePlainText(String text)
Specified by:
logToFilePlainText in interface FileLog


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.