}
protected void notifyEncoderChange() {
for (int i = 0; i < encoderListeners.size(); i++) {
((JagEncoderListener) encoderListeners.elementAt(i))
.countDidChange(new JagEncoderEvent(this,
EncoderEvent.DEFAULT, getState("Distance"),
(getState("Direction") == Sensor.TRUE)));
}
}