}
/** Notifies all <code>JagEncoderListener</code>s that the count has changed */
protected void notifyEncoderChange() {
for (int i = 0; i < encoderListeners.size(); i++) {
((JagEncoderListener) encoderListeners.elementAt(i)).countDidChange(new JagEncoderEvent(this,
JagEncoderEvent.DISTANCE, getState(DISTANCE),
(getState(DIRECTION) == Sensor.TRUE)));
}
}