Class ReadLiveWeightWithTare

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
DoPriceCalculating

public class ReadLiveWeightWithTare extends ReadWeight
Input request executor for Scale method ReadLiveWeightWithTare.
  • Field Details

    • Tare

      public int Tare
      Scale method ReadLiveWeightWithTare parameter tare, see UPOS specification. Tare from scale after successful invocation.
  • Constructor Details

    • ReadLiveWeightWithTare

      public ReadLiveWeightWithTare(JposCommonProperties props, int weightData, int tare, int timeout)
      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.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class ReadWeight
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.