|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectheurgame.logging.AbstractLog
heurgame.logging.DefaultLog
Constructor Summary | |
DefaultLog()
Creates a new Log Ensures the log will update itself every 100 milliseconds |
|
DefaultLog(long interval)
Constructs a new Log and allows it to be updated at a specified rate |
Method Summary | |
void |
addLogReader(LogReader r)
Adds the LogReader to its delivery Always add your Readers first! |
void |
addLogWriter(LogWriter w)
Adds the LogWriter to its pickup. |
void |
clear()
Clears all of the Readers via the LogReader interface. |
void |
removeLogReader(LogReader r)
Removes the LogReader from delivery |
void |
removeLogWriter(LogWriter w)
Removes the LogWriter from pickup. |
void |
startLogging()
Spawns a thread that reads the output from the LogWriters, and writes that output to the LogReaders. |
void |
stopLogging()
Terminates the broadcast thread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultLog()
public DefaultLog(long interval)
interval
- Items will be collected and reported once in this timeMethod Detail |
public void addLogWriter(LogWriter w)
AbstractLog
addLogWriter
in class AbstractLog
w
- The Specific WriterAbstractLog.addLogWriter(heurgame.logging.LogWriter)
public void addLogReader(LogReader r)
AbstractLog
addLogReader
in class AbstractLog
r
- to be added.AbstractLog.addLogReader(heurgame.logging.LogReader)
public void clear()
clear
in class AbstractLog
AbstractLog.clear()
public void startLogging()
startLogging
in class AbstractLog
AbstractLog.startLogging()
public void stopLogging()
stopLogging
in class AbstractLog
AbstractLog.stopLogging()
public void removeLogWriter(LogWriter w)
AbstractLog
removeLogWriter
in class AbstractLog
w
- The Specific WriterAbstractLog.removeLogWriter(heurgame.logging.LogWriter)
public void removeLogReader(LogReader r)
AbstractLog
removeLogReader
in class AbstractLog
r
- to be removed.AbstractLog.removeLogReader(heurgame.logging.LogReader)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |