prupp
Class Logger

java.lang.Object
  |
  +--prupp.Logger

public class Logger
extends java.lang.Object

this class handles logging of events. Events are classified by there string-represantion.


Inner Class Summary
static interface Logger.LogViewer
          the interface to implement when you want to snoop on the log
 
Method Summary
 void addViewer(Logger.LogViewer lv)
          Add a viewer to this logger
 int get(java.lang.String key)
          get the current count for an event.
 void inc(java.lang.String log)
          increase a logentry.
 java.util.Enumeration keys()
          get all events
 java.util.Enumeration values()
          get all values (unsorted)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addViewer

public void addViewer(Logger.LogViewer lv)
Add a viewer to this logger
Parameters:
lv - the LogViewer to add

inc

public void inc(java.lang.String log)
increase a logentry.
Parameters:
log - the event to increase

keys

public java.util.Enumeration keys()
get all events
Returns:
an Enumeration of all events

values

public java.util.Enumeration values()
get all values (unsorted)
Returns:
an Enumeration of all values

get

public int get(java.lang.String key)
get the current count for an event.
Parameters:
key - the event were intrested in
Returns:
the current count of event.