Class CashDrawerService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.cashdrawer.CashDrawerService
All Implemented Interfaces:
Runnable, jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.CashDrawerService110, jpos.services.CashDrawerService111, jpos.services.CashDrawerService112, jpos.services.CashDrawerService113, jpos.services.CashDrawerService114, jpos.services.CashDrawerService115, jpos.services.CashDrawerService116, jpos.services.CashDrawerService12, jpos.services.CashDrawerService13, jpos.services.CashDrawerService14, jpos.services.CashDrawerService15, jpos.services.CashDrawerService16, jpos.services.CashDrawerService17, jpos.services.CashDrawerService18, jpos.services.CashDrawerService19

public class CashDrawerService extends JposBase implements jpos.services.CashDrawerService116, Runnable
CashDrawer service implementation. For more details about getter, setter and method implementations, see JposBase.
This service supports the following properties in jpos.xml in addition to the properties listed in JposBaseDevice:
  • DrawerBeepVolume: Volume of drawer beep. Valid values are from 0 to 127. Default: 100.
  • Field Details

    • CashDrawerInterface

      public CashDrawerInterface CashDrawerInterface
      Instance of a class implementing the CashDrawerInterface for cash drawer specific setter and method calls bound to the property set. Almost always the same object as Data.
  • Constructor Details

    • CashDrawerService

      public CashDrawerService(CashDrawerProperties props, JposDevice device)
      Constructor. Stores property set and device implementation object.
      Parameters:
      props - Device service property set
      device - Device implementation object
  • Method Details

    • getCapStatusMultiDrawerDetect

      public boolean getCapStatusMultiDrawerDetect() throws jpos.JposException
      Specified by:
      getCapStatusMultiDrawerDetect in interface jpos.services.CashDrawerService15
      Throws:
      jpos.JposException
    • getCapStatus

      public boolean getCapStatus() throws jpos.JposException
      Specified by:
      getCapStatus in interface jpos.services.CashDrawerService12
      Throws:
      jpos.JposException
    • getDrawerOpened

      public boolean getDrawerOpened() throws jpos.JposException
      Specified by:
      getDrawerOpened in interface jpos.services.CashDrawerService12
      Throws:
      jpos.JposException
    • openDrawer

      public void openDrawer() throws jpos.JposException
      Specified by:
      openDrawer in interface jpos.services.CashDrawerService12
      Throws:
      jpos.JposException
    • waitForDrawerClose

      public void waitForDrawerClose(int beepTimeout, int beepFrequency, int beepDuration, int beepDelay) throws jpos.JposException
      Specified by:
      waitForDrawerClose in interface jpos.services.CashDrawerService12
      Throws:
      jpos.JposException
    • run

      public void run()
      Beeper thread: Waits at least 10 milliseconds, then starts beeping as requested until stopped. To stop the thread, call Sound.clear() and set Sound = null.
      Specified by:
      run in interface Runnable