next up previous
Next: 6.1.4 インタフェースButtonListener.java Up: 6.1 クラスThread.java Previous: 6.1.2 ListenerThread.java

6.1.3 インタフェースSensorListerner.java


package josx.platform.rcx;

/**
 * Listener of sensor events.
 * @see josx.platform.rcx.Sensor#addSensorListener
 */
public interface SensorListener
{
  /**
   * Called when the canonical value
   * of the sensor changes.
   * @param aSource The sensor that
   *     generated the event.
   * @param aOldValue The old sensor value.
   * @param aNewValue The new sensor value.
   */
  public void stateChanged (Sensor aSource,
                int aOldValue, int aNewValue);
}


generated through LaTeX2HTML. M.Inaba 平成18年5月6日