////// MyTimerListener.java /////// import josx.util.TimerListener; import josx.platform.rcx.Sound; /** * Public Class MyTimerListener Version 1.0 * @author Karl Gustav Sterneberg, Romain Barrallon, Victor Contreras */ public class MyTimerListener implements TimerListener { /** * Defines the action to take every timer interval. */ public void timedOut() { Sound.playTone(soundFrequency, beepTime); } /** * The tone frequency. */ private final int soundFrequency = 2100; /** * The tone duration. */ private final int beepTime = 4; }