Class VideoSound
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.UnitOutputRequest
de.gmxhome.conrad.jpos.jpos_base.remoteorderdisplay.VideoSound
- All Implemented Interfaces:
Runnable
Output request executor for RemoteOrderDisplay method VideoSound.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionVideoSound(JposCommonProperties props, int units, int frequency, int duration, int numberOfCycles, int interSoundWait)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves parameter duration of method VideoSound.int
Retrieves parameter frequency of method VideoSound.int
Retrieves parameter interSoundWait of method VideoSound.int
Retrieves parameter numberOfCycles of method VideoSound.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.UnitOutputRequest
checkUnitsOnline, clearOutput, createErrorEvent, getUnits
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, countCommands, createIdleEvent, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
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.JposExceptionDescription copied from class:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classJposOutputRequest
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-