CounterAlarmPanel Class
class CounterAlarmPanel extends Panel
implements CounterObserver {
public CounterAlarmPanel() {counters = new Vector();}
// add counter with error-threshold
void add(Counter ctr, int err) {…}
public void paint(Graphics g) {...}
public void counterHasChanged(Counter ctr) {…}
Vector counters; // counter/error-threshold pairs
Counter/error-threshold pairs maintained in helper class, CounterAlarm