Class BillDispenserProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.billdispenser.BillDispenserProperties
- All Implemented Interfaces:
BillDispenserInterface,JposBaseInterface
Class containing the bill dispenser specific properties, their default values and default implementations of
BillDispenserInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Bill Dispenser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintUPOS property AsyncResultCode.intUPOS property AsyncResultCodeExtended.booleanUPOS property CapDiscrepancy.booleanUPOS property CapEmptySensor.booleanUPOS property CapJamSensor.booleanUPOS property CapNearEmptySensor.UPOS property CurrencyCashList.UPOS property CurrencyCode.UPOS property CurrencyCodeList.intUPOS property CurrentExit.intUPOS property DeviceExits.UPOS property DeviceStatus.Default value of DeviceStatus property.UPOS property ExitCashList.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustCashCounts(String cashCounts)Final part of AdjustCashCounts method.voidcurrencyCode(String code)Final part of setting CurrencyCode.voidcurrentExit(int i)Final part of setting CurrentExit.voiddispenseCash(DispenseCash request)Final part of DispenseCash method.dispenseCash(String cashCounts)Validation part of DispenseCash method.voidinitOnEnable(boolean enable)Initialization of properties that must be initialized during deviceEnable.voidreadCashCounts(String[] cashCounts, boolean[] discrepancy)Final part of readCashCounts method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnFirstEnable, initOnOpen, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
AsyncResultCode
public int AsyncResultCodeUPOS property AsyncResultCode. Default: STATUS_OK. Will be set when throwing a BillDispenserStatusUpdateEvent with STATUS_ASYNC. -
AsyncResultCodeExtended
public int AsyncResultCodeExtendedUPOS property AsyncResultCodeExtended. Default: 0. Will be set when throwing a BillDispenserStatusUpdateEvent with STATUS_ASYNC. -
CapDiscrepancy
public boolean CapDiscrepancyUPOS property CapDiscrepancy. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapEmptySensor
public boolean CapEmptySensorUPOS property CapEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJamSensor
public boolean CapJamSensorUPOS property CapJamSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapNearEmptySensor
public boolean CapNearEmptySensorUPOS property CapNearEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CurrencyCashList
UPOS property CurrencyCashList. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults method. -
CurrencyCode
UPOS property CurrencyCode. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults method. -
CurrencyCodeList
UPOS property CurrencyCodeList. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults method. -
CurrentExit
public int CurrentExitUPOS property CurrentExit. Default: 1. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
DeviceExits
public int DeviceExitsUPOS property DeviceExits. Default: 1. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
DeviceStatus
UPOS property DeviceStatus. -
DeviceStatusDef
Default value of DeviceStatus property. Default: null. Must be updated before calling initOnEnable the first time. -
ExitCashList
UPOS property ExitCashList. Default: null. Must be overwritten by objects derived from JposDevice within the changeDefaults method.
-
-
Constructor Details
-
BillDispenserProperties
protected BillDispenserProperties(int dev)Constructor.- Parameters:
dev- Device index
-
-
Method Details
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnablein classJposCommonProperties- Parameters:
enable- True: initialize properties, false: do nothing
-
currencyCode
Description copied from interface:BillDispenserInterfaceFinal part of setting CurrencyCode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- code is one of the values specified in CurrencyCodeList,
- internal property AllowAlwaysSetProperties is true or code equals the previous value of CurrencyCode.
- Specified by:
currencyCodein interfaceBillDispenserInterface- Parameters:
code- New value for CurrencyCode property.- Throws:
jpos.JposException- If an error occurs.
-
currentExit
public void currentExit(int i) throws jpos.JposExceptionDescription copied from interface:BillDispenserInterfaceFinal part of setting CurrentExit. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- i is neither less than one nor greater than DeviceExits.
- Specified by:
currentExitin interfaceBillDispenserInterface- Parameters:
i- New value for CurrentExit property.- Throws:
jpos.JposException- If an error occurs.
-
adjustCashCounts
Description copied from interface:BillDispenserInterfaceFinal part of AdjustCashCounts method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- cashCounts start with ";" to indicate adjustment of bills,
- the remainder of cashCounts consists of a comma separated, not empty list of integer value pairs separated by double-point.
- Specified by:
adjustCashCountsin interfaceBillDispenserInterface- Parameters:
cashCounts- The cashCounts parameter contains cash types and amounts to be initialized.- Throws:
jpos.JposException- If an error occurs.
-
readCashCounts
Description copied from interface:BillDispenserInterfaceFinal part of readCashCounts method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- cashCounts is not null and has dimension 1,
- discrepancy is not null and has dimension 1.
- Specified by:
readCashCountsin interfaceBillDispenserInterface- Parameters:
cashCounts- The cash count data is placed into cashCounts.discrepancy- Specifies whether there is some cash which could not to be included in the counts reported.- Throws:
jpos.JposException- If an error occurs.
-
dispenseCash
Description copied from interface:BillDispenserInterfaceValidation part of DispenseCash method. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- all previous DispenseCash operations have been finished,
- cashCounts start with ";" to indicate adjustment of bills,
- the remainder of cashCounts consists of a comma separated, not empty list of integer value pairs separated by double-point.
- Specified by:
dispenseCashin interfaceBillDispenserInterface- Parameters:
cashCounts- The cashCounts parameter contains the dispensing cash units and counts.- Returns:
- DispenseCash object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
dispenseCash
Description copied from interface:BillDispenserInterfaceFinal part of DispenseCash method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a DispenseCash object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.- Specified by:
dispenseCashin interfaceBillDispenserInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by DispenseCash.- Throws:
jpos.JposException- If an error occurs.
-