heurgame.logging
Class AbstractLog

java.lang.Object
  extended byheurgame.logging.AbstractLog
Direct Known Subclasses:
DefaultLog

public abstract class AbstractLog
extends java.lang.Object

Author:
David Kaplin There is potential for the logging infrastructure to get too large for a single class. Through this different logs may be built for a wide variety of uses.

Constructor Summary
AbstractLog()
           
 
Method Summary
abstract  void addLogReader(LogReader r)
          Adds the LogReader to its delivery Always add your Readers first!
abstract  void addLogWriter(LogWriter w)
          Adds the LogWriter to its pickup.
abstract  void clear()
          Should force a clear on all readers and set them back to their initial states.
abstract  void removeLogReader(LogReader r)
          Removes the LogReader from delivery
abstract  void removeLogWriter(LogWriter w)
          Removes the LogWriter from pickup.
abstract  void startLogging()
          Should initiate some sort of mechanism for both receiving log entries and delivering them to the readers
abstract  void stopLogging()
          Terminates the mechanism for log input and output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLog

public AbstractLog()
Method Detail

addLogWriter

public abstract void addLogWriter(LogWriter w)
Adds the LogWriter to its pickup. Make sure to add your Readers first!

Parameters:
w - The Specific Writer

addLogReader

public abstract void addLogReader(LogReader r)
Adds the LogReader to its delivery Always add your Readers first!

Parameters:
r - to be added.

clear

public abstract void clear()
Should force a clear on all readers and set them back to their initial states.


startLogging

public abstract void startLogging()
Should initiate some sort of mechanism for both receiving log entries and delivering them to the readers


stopLogging

public abstract void stopLogging()
Terminates the mechanism for log input and output


removeLogWriter

public abstract void removeLogWriter(LogWriter w)
Removes the LogWriter from pickup.

Parameters:
w - The Specific Writer

removeLogReader

public abstract void removeLogReader(LogReader r)
Removes the LogReader from delivery

Parameters:
r - to be removed.