The add Method
Creates a CounterAlarm object from the counter/error-threshold
Adds the CounterAlarm to the Vector
Registers as an observer of the Counter
void add(Counter ctr, int err) {
counters.addElement(new CounterAlarm(ctr, err));
ctr.registerAsObserver(this);