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:
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 Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the CashDrawerInterface for cash drawer specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props
-
Constructor Summary
ConstructorsConstructorDescriptionCashDrawerService(CashDrawerProperties props, JposDevice device)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
void
void
run()
Beeper thread: Waits at least 10 milliseconds, then starts beeping as requested until stopped.void
waitForDrawerClose(int beepTimeout, int beepFrequency, int beepDuration, int beepDelay)
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, clearOutput, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.services.CashDrawerService13
getCapPowerReporting, getPowerNotify, getPowerState, setPowerNotify
Methods inherited from interface jpos.services.CashDrawerService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatistics
Methods inherited from interface jpos.services.CashDrawerService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
-
Field Details
-
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
Constructor. Stores property set and device implementation object.- Parameters:
props
- Device service property setdevice
- Device implementation object
-
-
Method Details
-
getCapStatusMultiDrawerDetect
public boolean getCapStatusMultiDrawerDetect() throws jpos.JposException- Specified by:
getCapStatusMultiDrawerDetect
in interfacejpos.services.CashDrawerService15
- Throws:
jpos.JposException
-
getCapStatus
public boolean getCapStatus() throws jpos.JposException- Specified by:
getCapStatus
in interfacejpos.services.CashDrawerService12
- Throws:
jpos.JposException
-
getDrawerOpened
public boolean getDrawerOpened() throws jpos.JposException- Specified by:
getDrawerOpened
in interfacejpos.services.CashDrawerService12
- Throws:
jpos.JposException
-
openDrawer
public void openDrawer() throws jpos.JposException- Specified by:
openDrawer
in interfacejpos.services.CashDrawerService12
- Throws:
jpos.JposException
-
waitForDrawerClose
public void waitForDrawerClose(int beepTimeout, int beepFrequency, int beepDuration, int beepDelay) throws jpos.JposException- Specified by:
waitForDrawerClose
in interfacejpos.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.
-