Class ReadLiveWeightWithTare
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.JposInputRequest
de.gmxhome.conrad.jpos.jpos_base.scale.ReadWeight
de.gmxhome.conrad.jpos.jpos_base.scale.ReadLiveWeightWithTare
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
DoPriceCalculating
Input request executor for Scale method ReadLiveWeightWithTare.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread -
Field Summary
FieldsModifier and TypeFieldDescriptionintScale method ReadLiveWeightWithTare parameter tare, see UPOS specification.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.scale.ReadWeight
SalesPrice, WeightDataFields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting -
Constructor Summary
ConstructorsConstructorDescriptionReadLiveWeightWithTare(JposCommonProperties props, int weightData, int tare, int timeout)Constructor. -
Method Summary
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.scale.ReadWeight
getTimeoutMethods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposInputRequest
createErrorEvent, createOutputEvent, enqueue, finishAsyncProcessing, reactivateMethods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createIdleEvent, dequeue, enqueueSynchronous, finished, reactivate, reset, run
-
Field Details
-
Tare
public int TareScale method ReadLiveWeightWithTare parameter tare, see UPOS specification. Tare from scale after successful invocation.
-
-
Constructor Details
-
ReadLiveWeightWithTare
Constructor. Stores given parameters for later use.- Parameters:
props- Property set of device service.weightData- Preset for returned value for the weight measured by the scale.tare- The value used to calculate the net weight.timeout- The number of milliseconds to wait for a settled weight before failing the method.
-
-
Method Details
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:JposOutputRequestInvokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invokein classReadWeight- Throws:
jpos.JposException- JposException thrown by the command to be executed.
-