Package pygar.demo0P

Class TeamMember.Logger

java.lang.Object
pygar.demo0P.TeamMember.Logger
All Implemented Interfaces:
java.util.Observer
Enclosing class:
TeamMember

public class TeamMember.Logger
extends java.lang.Object
implements java.util.Observer
This inner class provides a log facility for debugging. It keeps messages in memory until they are printed. Thus, it has two drawbacks: it can fill up, and a crash may throw away the messages before they are printed.
  • Constructor Summary

    Constructors 
    Constructor Description
    Logger​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    void printOut()  
    void update​(java.util.Observable o, java.lang.Object arg)  
    void writeln​(java.lang.String s)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Logger

      public Logger​(java.lang.String name)
  • Method Details

    • update

      public void update​(java.util.Observable o, java.lang.Object arg)
      Specified by:
      update in interface java.util.Observer
    • printOut

      public void printOut()
    • writeln

      public void writeln​(java.lang.String s)