Class BumpBarSound

All Implemented Interfaces:
Runnable

public class BumpBarSound extends UnitOutputRequest
Output request executor for BumpBar method BumpBarSound.
  • Constructor Details

    • BumpBarSound

      public BumpBarSound(JposCommonProperties props, int units, int frequency, int duration, int numberOfCycles, int interSoundWait)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      units - Units where status has been changed.
      frequency - Tone frequency in Hertz.
      duration - Tone duration in milliseconds.
      numberOfCycles - Number of cycles to generate tone.
      interSoundWait - Delay between sounds, in milliseconds.
  • Method Details

    • getFrequency

      public int getFrequency()
      Retrieves parameter frequency of method BumpBarSound. See UPOS specification for further information.
      Returns:
      Value of method parameter frequency.
    • getDuration

      public int getDuration()
      Retrieves parameter duration of method BumpBarSound. See UPOS specification for further information.
      Returns:
      Value of method parameter duration.
    • getNumberOfCycles

      public int getNumberOfCycles()
      Retrieves parameter numberOfCycles of method BumpBarSound. See UPOS specification for further information.
      Returns:
      Value of method parameter numberOfCycles.
    • getInterSoundWait

      public int getInterSoundWait()
      Retrieves parameter interSoundWait of method BumpBarSound. See UPOS specification for further information.
      Returns:
      Value of method parameter interSoundWait.
    • 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.