@SuppressWarnings("unchecked") protected void notify(LocoNetSlot s){
  Vector<SlotListener> v;
synchronized (this) {
    v=(Vector<SlotListener>)slotListeners.clone();
  }
  if (log.isDebugEnabled()) {
    log.debug("notify " + v.size() + " SlotListeners about slot "+ s.getSlot());
  }
  int cnt=v.size();
  for (int i=0; i < cnt; i++) {
    SlotListener client=v.elementAt(i);
    client.notifyChangedSlot(s);
  }
}

@ SuppressWarnings ( "unchecked" ) protected void notify ( LocoNetSlot s ) { Vector < SlotListener > v ; synchronized ( this ) { v = ( Vector < SlotListener > ) slotListeners . clone ( ) ; } if ( log . isDebugEnabled ( ) ) { log . debug ( "notify " + v . size ( ) + " SlotListeners about slot " + s . getSlot ( ) ) ; } int cnt = v . size ( ) ; for ( int i = 0 ; i < cnt ; i ++ ) { SlotListener client = v . elementAt ( i ) ; client . notifyChangedSlot ( s ) ; } }
trigger the notification of all slotlisteners .
