All Implemented Interfaces:
Runnable

public class VideoSound extends UnitOutputRequest
Output request executor for RemoteOrderDisplay method VideoSound.
  • Constructor Details

    • VideoSound

      public VideoSound(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 - Bitwise mask indicating which video unit(s) to operate on.
      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 VideoSound. See UPOS specification for further information.
      Returns:
      Value of method parameter frequency.
    • getDuration

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

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

      public int getInterSoundWait()
      Retrieves parameter interSoundWait of method VideoSound. 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.