Class BillDispenserStatusUpdateEvent
java.lang.Object
java.util.EventObject
jpos.events.JposEvent
jpos.events.StatusUpdateEvent
de.gmxhome.conrad.jpos.jpos_base.JposStatusUpdateEvent
de.gmxhome.conrad.jpos.jpos_base.billdispenser.BillDispenserStatusUpdateEvent
- All Implemented Interfaces:
Serializable
Status update event implementation for BillDispenser devices.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class jpos.events.StatusUpdateEvent
statusFields inherited from class jpos.events.JposEvent
sequenceNumberFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionBillDispenserStatusUpdateEvent(JposBase source, int state)Constructor, Parameters passed to base class unchanged.BillDispenserStatusUpdateEvent(JposBase source, int state, int deviceState)Constructor, Parameters source and state passed to base class unchanged.BillDispenserStatusUpdateEvent(JposBase source, int state, jpos.JposException ex)Constructor, Parameters source and state passed to base class unchanged. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the device state corresponds to the event status.booleanSets status properties and checks whether status properties have been changed.booleanSet status properties to reflect the given status.Generates string describing the data event for logging purposes.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposStatusUpdateEvent
block, copyEvent, getPropertySet, getPropertyValues, propertiesHaveBeenChanged, setLateProperties, setStatusMethods inherited from class jpos.events.StatusUpdateEvent
getStatusMethods inherited from class jpos.events.JposEvent
getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumberMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
BillDispenserStatusUpdateEvent
Constructor, Parameters passed to base class unchanged.- Parameters:
source- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.state- Status, see UPOS specification.
-
BillDispenserStatusUpdateEvent
Constructor, Parameters source and state passed to base class unchanged. Parameter ex can be used by objects derived from JposOutputRequest to pass the results of the corresponding request.- Parameters:
source- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.state- Status, see UPOS specification.ex- JposException, used for STATUS_ASYNC in error case.
-
BillDispenserStatusUpdateEvent
Constructor, Parameters source and state passed to base class unchanged. Parameter deviceState must be used to pass the value for DeviceStatus, depending on the given status value.- Parameters:
source- Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.state- Status, see UPOS specification.deviceState- Value to be set in DeviceStatus, in case of jam or slot condition change.
-
-
Method Details
-
setStatusProperties
public boolean setStatusProperties()Description copied from class:JposStatusUpdateEventSet status properties to reflect the given status. These properties must be set immediately before the event is buffered into the event queue.- Overrides:
setStatusPropertiesin classJposStatusUpdateEvent- Returns:
- true, if properties have been updated, false otherwise
-
checkStatusCorresponds
public boolean checkStatusCorresponds()Description copied from class:JposStatusUpdateEventChecks if the device state corresponds to the event status.- Overrides:
checkStatusCorrespondsin classJposStatusUpdateEvent- Returns:
- true if device state corresponds to event state, false otherwise.
-
setAndCheckStatusProperties
public boolean setAndCheckStatusProperties()Description copied from class:JposStatusUpdateEventSets status properties and checks whether status properties have been changed. If so, logs status change.- Overrides:
setAndCheckStatusPropertiesin classJposStatusUpdateEvent- Returns:
- true if state might have been really changed, false otherwise.
-
toLogString
Description copied from class:JposStatusUpdateEventGenerates string describing the data event for logging purposes.- Overrides:
toLogStringin classJposStatusUpdateEvent- Returns:
- Describing string.
-