frysk.testbed
Class PidCounter

java.lang.Object
  extended by frysk.testbed.PidCounter
All Implemented Interfaces:
Observer

public class PidCounter
extends Object
implements Observer

Watch for events involving the specified PID process; count the number of events seen.


Field Summary
 int count
           
private  int pid
           
 List what
           
 
Constructor Summary
PidCounter(int pid)
          Create a pid counter bound to PID.
PidCounter(int pid, Observable observable)
          Create a pid counter bound to PID, and attached to observable.
 
Method Summary
 void update(Observable o, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

what

public final List what

pid

private int pid

count

public int count
Constructor Detail

PidCounter

public PidCounter(int pid)
Create a pid counter bound to PID.


PidCounter

public PidCounter(int pid,
                  Observable observable)
Create a pid counter bound to PID, and attached to observable.

Method Detail

update

public void update(Observable o,
                   Object obj)
Specified by:
update in interface Observer