Class BumpBarSound
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.UnitOutputRequest
de.gmxhome.conrad.jpos.jpos_base.bumpbar.BumpBarSound
- All Implemented Interfaces:
Runnable
Output request executor for BumpBar method BumpBarSound.
-
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
ConstructorsConstructorDescriptionBumpBarSound(JposCommonProperties props, int units, int frequency, int duration, int numberOfCycles, int interSoundWait)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves parameter duration of method BumpBarSound.int
Retrieves parameter frequency of method BumpBarSound.int
Retrieves parameter interSoundWait of method BumpBarSound.int
Retrieves parameter numberOfCycles of method BumpBarSound.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
-
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.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.
-