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