Class JposTransitionEvent

java.lang.Object
java.util.EventObject
jpos.events.JposEvent
jpos.events.TransitionEvent
de.gmxhome.conrad.jpos.jpos_base.JposTransitionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ElectronicValueRWTransitionEvent, JposTransitionWaitingEvent

public class JposTransitionEvent extends jpos.events.TransitionEvent
Transition event. The default implementation for event handling does not handle instances of TransitionEvent, it handles only instances of JposTransitionEvent instead.
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class jpos.events.TransitionEvent

    data, eventNumber, string

    Fields inherited from class jpos.events.JposEvent

    sequenceNumber

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    JposTransitionEvent​(JposBase source, int eventNumber, int pData, String pString)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns property set bound to the event source.
    void
    setData​(int data)
     
    void
    setString​(String string)
     
    void
    Sets the Transition properties stored within the JposTransitionEvent into the JposCommonProperties object stored in Source.
    Generates string describing the transition event for logging purposes.

    Methods inherited from class jpos.events.TransitionEvent

    getData, getEventNumber, getString

    Methods inherited from class jpos.events.JposEvent

    getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumber

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JposTransitionEvent

      public JposTransitionEvent(JposBase source, int eventNumber, int pData, String pString)
      Constructor. Parameters passed to base class unchanged.
      Parameters:
      source - Source, for services implemented with this framework, the (deviceclass.)DeviceClassService object.
      eventNumber - The ID number of the asynchronous I/O device process condition
      pData - Additional information about appropriate response which is dependent upon the specific process condition.
      pString - Information about the specific event that has occurred.
  • Method Details

    • toLogString

      public String toLogString()
      Generates string describing the transition event for logging purposes.
      Returns:
      Describing string.
    • getPropertySet

      public JposCommonProperties getPropertySet()
      Returns property set bound to the event source.
      Returns:
      Property set.
    • setTransitionProperties

      public void setTransitionProperties()
      Sets the Transition properties stored within the JposTransitionEvent into the JposCommonProperties object stored in Source. The corresponding properties must be defined within derived classes.
    • setData

      public void setData(int data)
      Overrides:
      setData in class jpos.events.TransitionEvent
    • setString

      public void setString(String string)
      Overrides:
      setString in class jpos.events.TransitionEvent