Class CashChangerDataEvent
java.lang.Object
java.util.EventObject
jpos.events.JposEvent
jpos.events.DataEvent
de.gmxhome.conrad.jpos.jpos_base.JposDataEvent
de.gmxhome.conrad.jpos.jpos_base.cashchanger.CashChangerDataEvent
- All Implemented Interfaces:
Serializable
Data event implementation for CashChanger devices.
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe total amount of deposited cash.Holds the total of the cash accepted by the CashChanger.Fields inherited from class jpos.events.DataEvent
statusFields inherited from class jpos.events.JposEvent
sequenceNumberFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionCashChangerDataEvent(JposBase source, int state, int amount, String counts)Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the data properties stored within the JposDataEvent into the JposCommonProperties object.Generates string describing the data event for logging purposes.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposDataEvent
getPropertySetMethods inherited from class jpos.events.DataEvent
getStatusMethods inherited from class jpos.events.JposEvent
getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumberMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
Counts
Holds the total of the cash accepted by the CashChanger. See UPOS specification, Chapter Cash Changer - Properties - DepositCounts for details. -
Amount
public final int AmountThe total amount of deposited cash. See UPOS specification, Chapter Cash Changer - Properties - DepositAmount for details.
-
-
Constructor Details
-
CashChangerDataEvent
Constructor. Parameters passed to base class unchanged. The additional parameters must be stored in the corresponding deposit properties before firing the data event.- Parameters:
source- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.state- Status, see UPOS specification.amount- Value to be stored in property DepositAmount.counts- Value to be stored in property DepositCounts.
-
-
Method Details
-
setDataProperties
public void setDataProperties()Description copied from class:JposDataEventSets the data properties stored within the JposDataEvent into the JposCommonProperties object. The corresponding properties must be defined within derived classes.- Overrides:
setDataPropertiesin classJposDataEvent
-
toLogString
Description copied from class:JposDataEventGenerates string describing the data event for logging purposes.- Overrides:
toLogStringin classJposDataEvent- Returns:
- Describing string.
-