Class Sound
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.toneindicator.Sound
- All Implemented Interfaces:
Runnable
Output request executor for ToneIndicator method Sound.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
ToneIndicator method sound parameter numberOfCycles, see UPOS specification.int
ToneIndicator method sound parameter interSoundWait, see UPOS specification.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createErrorEvent, createIdleEvent, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Field Details
-
Count
public int CountToneIndicator method sound parameter numberOfCycles, see UPOS specification. Should be decremented after each sound played. -
Delay
public final int DelayToneIndicator method sound parameter interSoundWait, see UPOS specification.
-
-
Constructor Details
-
Sound
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.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.
-