Class CashChangerStatusUpdateEvent

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.cashchanger.CashChangerStatusUpdateEvent
All Implemented Interfaces:
Serializable

public class CashChangerStatusUpdateEvent extends JposStatusUpdateEvent
Status update event implementation for CashChanger devices.
See Also:
Serialized Form
  • Constructor Details

    • CashChangerStatusUpdateEvent

      public CashChangerStatusUpdateEvent(JposBase source, int state)
      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.
    • CashChangerStatusUpdateEvent

      public CashChangerStatusUpdateEvent(JposBase source, int state, jpos.JposException ex)
      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.
    • CashChangerStatusUpdateEvent

      public CashChangerStatusUpdateEvent(JposBase source, int status, int state)
      Constructor, Parameters source and status passed to base class unchanged. Parameter state must be used to pass the value for DeviceStatus, DepositStatus or FullStatus, depending on the given status value.
      Parameters:
      source - Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.
      status - Status, see UPOS specification.
      state - Value to be set in DeviceStatus or DepositStatus, depending on current DepositStatus value.
  • Method Details

    • setStatusProperties

      public boolean setStatusProperties()
      Description copied from class: JposStatusUpdateEvent
      Set status properties to reflect the given status. These properties must be set immediately before the event is buffered into the event queue.
      Overrides:
      setStatusProperties in class JposStatusUpdateEvent
      Returns:
      true, if properties have been updated, false otherwise
    • checkStatusCorresponds

      public boolean checkStatusCorresponds()
      Description copied from class: JposStatusUpdateEvent
      Checks if the device state corresponds to the event status.
      Overrides:
      checkStatusCorresponds in class JposStatusUpdateEvent
      Returns:
      true if device state corresponds to event state, false otherwise.
    • setAndCheckStatusProperties

      public boolean setAndCheckStatusProperties()
      Description copied from class: JposStatusUpdateEvent
      Sets status properties and checks whether status properties have been changed. If so, logs status change.
      Overrides:
      setAndCheckStatusProperties in class JposStatusUpdateEvent
      Returns:
      true if state might have been really changed, false otherwise.
    • toLogString

      public String toLogString()
      Description copied from class: JposStatusUpdateEvent
      Generates string describing the data event for logging purposes.
      Overrides:
      toLogString in class JposStatusUpdateEvent
      Returns:
      Describing string.