public class EventSource
extends java.lang.Object
EventSource theSource = new EventSource("debugname"){
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name is private because it is only used for toString().
|
static EventSource |
nullSource
A default source with empty methods.
|
static int |
version
Version, history and license
The meaning and name is changed.
|
Constructor and Description |
---|
EventSource(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
notifyConsumed(int state)
This operation is called after calling
EventConsumer.processEvent(java.util.EventObject)
in EventTimerThread and should be called also in all other implementations of EventThread_ifc
to assign, how the event is used. |
void |
notifyDequeued()
It is called if the event is dequeued from the
EventWithDst.evDstThread queue and attempt to processed. |
void |
notifyRelinquished(int ctConsumed) |
void |
notifyShouldOccupyButInUse() |
void |
notifyShouldSentButInUse() |
void |
notifyUnexpectedException(java.lang.CharSequence msg) |
java.lang.String |
toString() |
public static final int version
EventCmdtype
class.
private final java.lang.String name
public static EventSource nullSource
public void notifyDequeued()
EventWithDst.evDstThread
queue and attempt to processed.public void notifyConsumed(int state)
EventConsumer.processEvent(java.util.EventObject)
in EventTimerThread
and should be called also in all other implementations of EventThread_ifc
to assign, how the event is used.state
- The return value on EventConsumer.processEvent(java.util.EventObject)
given from the user implementation.
It is recommended to use the defined bits in EventConsumer.mEventConsumed
etc.
or also from StateSimple.mStateEntered
etc.
The bits 31..24 the EventWithDst.ctConsumed
especially for debugging.public void notifyRelinquished(int ctConsumed)
public void notifyShouldSentButInUse()
public void notifyShouldOccupyButInUse()
public void notifyUnexpectedException(java.lang.CharSequence msg)
public java.lang.String toString()
toString
in class java.lang.Object