Package de.gmxhome.conrad.jpos.jpos_base
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, stringFields inherited from class jpos.events.JposEvent
sequenceNumberFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionJposTransitionEvent(JposBase source, int eventNumber, int pData, String pString)Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns property set bound to the event source.voidsetData(int data)voidvoidSets 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, getStringMethods inherited from class jpos.events.JposEvent
getSequenceNumber, getWhen, incrSequenceNumber, updateSequenceNumberMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
JposTransitionEvent
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 conditionpData- 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
Generates string describing the transition event for logging purposes.- Returns:
- Describing string.
-
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:
setDatain classjpos.events.TransitionEvent
-
setString
- Overrides:
setStringin classjpos.events.TransitionEvent
-