Class ItemDispenserService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.itemdispenser.ItemDispenserService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.ItemDispenserService112, jpos.services.ItemDispenserService113, jpos.services.ItemDispenserService114, jpos.services.ItemDispenserService115, jpos.services.ItemDispenserService116

public class ItemDispenserService extends JposBase implements jpos.services.ItemDispenserService116
ItemDispenser service implementation. For more details about getter, setter and method implementations, see JposBase.
  • Field Details

    • ItemDispenserInterface

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

    • ItemDispenserService

      public ItemDispenserService(ItemDispenserProperties props, JposDevice device)
      Constructor. Stores given property set and device implementation object.
      Parameters:
      props - Property set.
      device - Device implementation object.
  • Method Details

    • getCapEmptySensor

      public boolean getCapEmptySensor() throws jpos.JposException
      Specified by:
      getCapEmptySensor in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • getCapIndividualSlotStatus

      public boolean getCapIndividualSlotStatus() throws jpos.JposException
      Specified by:
      getCapIndividualSlotStatus in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • getCapJamSensor

      public boolean getCapJamSensor() throws jpos.JposException
      Specified by:
      getCapJamSensor in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • getCapNearEmptySensor

      public boolean getCapNearEmptySensor() throws jpos.JposException
      Specified by:
      getCapNearEmptySensor in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • getDispenserStatus

      public int getDispenserStatus() throws jpos.JposException
      Specified by:
      getDispenserStatus in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • getMaxSlots

      public int getMaxSlots() throws jpos.JposException
      Specified by:
      getMaxSlots in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • adjustItemCount

      public void adjustItemCount(int itemCount, int slotNumber) throws jpos.JposException
      Specified by:
      adjustItemCount in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • dispenseItem

      public void dispenseItem(int[] numItem, int slotNumber) throws jpos.JposException
      Specified by:
      dispenseItem in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException
    • readItemCount

      public void readItemCount(int[] itemCount, int slotNumber) throws jpos.JposException
      Specified by:
      readItemCount in interface jpos.services.ItemDispenserService112
      Throws:
      jpos.JposException