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 TypeFieldDescriptionint
Scale method ReadLiveWeightWithTare parameter tare, see UPOS specification.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.scale.ReadWeight
SalesPrice, WeightData
Fields 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
getTimeout
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposInputRequest
createErrorEvent, createOutputEvent, enqueue, finishAsyncProcessing, reactivate
Methods 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:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classReadWeight
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-