java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.toneindicator.Sound
All Implemented Interfaces:
Runnable

public class Sound extends JposOutputRequest
Output request executor for ToneIndicator method Sound.
  • Field Details

    • Count

      public int Count
      ToneIndicator method sound parameter numberOfCycles, see UPOS specification. Should be decremented after each sound played.
    • Delay

      public final int Delay
      ToneIndicator method sound parameter interSoundWait, see UPOS specification.
  • Constructor Details

    • Sound

      public Sound(ToneIndicatorProperties props, int count, int delay)
      Constructor. Stores given parameters for later use. In addition to the base class, the UPOS parameters of ToneIndicatorInterface method Sound must be passed.
      Parameters:
      props - Property set of device service.
      count - Number of times the tone shall be played, FOREVER means forever.
      delay - Delay between tones.
  • Method Details

    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class JposOutputRequest
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.