Class BumpBarService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.bumpbar.BumpBarService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.BumpBarService110, jpos.services.BumpBarService111, jpos.services.BumpBarService112, jpos.services.BumpBarService113, jpos.services.BumpBarService114, jpos.services.BumpBarService115, jpos.services.BumpBarService116, jpos.services.BumpBarService13, jpos.services.BumpBarService14, jpos.services.BumpBarService15, jpos.services.BumpBarService16, jpos.services.BumpBarService17, jpos.services.BumpBarService18, jpos.services.BumpBarService19

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

    • BumpBarInterface

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

    • BumpBarService

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

    • validateTone

      public int validateTone(int bits)
      Checks if CapTone is true for all units specified by bits.
      Parameters:
      bits - Bit mask specifying all units to be checked.
      Returns:
      Bit mask, 1 for every requested unit where CapTone is false.
    • getAsyncMode

      public boolean getAsyncMode() throws jpos.JposException
      Description copied from class: JposBase
      Get common property AsyncMode, see UPOS specification
      Specified by:
      getAsyncMode in interface jpos.services.BumpBarService13
      Overrides:
      getAsyncMode in class JposBase
      Returns:
      property value
      Throws:
      jpos.JposException - See UPOS specification, property
    • setAsyncMode

      public void setAsyncMode(boolean b) throws jpos.JposException
      Description copied from class: JposBase
      Get common property AsyncMode, see UPOS specification
      Specified by:
      setAsyncMode in interface jpos.services.BumpBarService13
      Overrides:
      setAsyncMode in class JposBase
      Parameters:
      b - New property value
      Throws:
      jpos.JposException - See UPOS specification, property PowerNotify
    • getCapTone

      public boolean getCapTone() throws jpos.JposException
      Specified by:
      getCapTone in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getAutoToneDuration

      public int getAutoToneDuration() throws jpos.JposException
      Specified by:
      getAutoToneDuration in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • setAutoToneDuration

      public void setAutoToneDuration(int i) throws jpos.JposException
      Specified by:
      setAutoToneDuration in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getAutoToneFrequency

      public int getAutoToneFrequency() throws jpos.JposException
      Specified by:
      getAutoToneFrequency in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • setAutoToneFrequency

      public void setAutoToneFrequency(int i) throws jpos.JposException
      Specified by:
      setAutoToneFrequency in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getBumpBarDataCount

      public int getBumpBarDataCount() throws jpos.JposException
      Specified by:
      getBumpBarDataCount in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getCurrentUnitID

      public int getCurrentUnitID() throws jpos.JposException
      Specified by:
      getCurrentUnitID in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • setCurrentUnitID

      public void setCurrentUnitID(int i) throws jpos.JposException
      Specified by:
      setCurrentUnitID in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getErrorString

      public String getErrorString() throws jpos.JposException
      Specified by:
      getErrorString in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getErrorUnits

      public int getErrorUnits() throws jpos.JposException
      Specified by:
      getErrorUnits in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getEventString

      public String getEventString() throws jpos.JposException
      Specified by:
      getEventString in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getEventUnitID

      public int getEventUnitID() throws jpos.JposException
      Specified by:
      getEventUnitID in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getEventUnits

      public int getEventUnits() throws jpos.JposException
      Specified by:
      getEventUnits in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getKeys

      public int getKeys() throws jpos.JposException
      Specified by:
      getKeys in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getTimeout

      public int getTimeout() throws jpos.JposException
      Specified by:
      getTimeout in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • setTimeout

      public void setTimeout(int i) throws jpos.JposException
      Specified by:
      setTimeout in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • getUnitsOnline

      public int getUnitsOnline() throws jpos.JposException
      Specified by:
      getUnitsOnline in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • bumpBarSound

      public void bumpBarSound(int units, int frequency, int duration, int numberOfCycles, int interSoundWait) throws jpos.JposException
      Specified by:
      bumpBarSound in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException
    • setKeyTranslation

      public void setKeyTranslation(int units, int scanCode, int logicalKey) throws jpos.JposException
      Specified by:
      setKeyTranslation in interface jpos.services.BumpBarService13
      Throws:
      jpos.JposException