|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
aa.tool.SystemThread
This class includes fundamental behavior of System Actors
History:
| Field Summary | |
private Queue |
m_qMsgQueue
In-coming message queue |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
SystemThread()
Cretes a system thread instance. |
|
| Method Summary | |
void |
deliverMessage(ActorMessage p_amMsg)
Inserts a message into the in-coming mail queue of this actor, and wake up sleeping actors. |
protected abstract void |
init()
Processes some necessay routines before entering the while loop in the run method. |
protected abstract void |
processMessage(ActorMessage p_amMsg)
Processes a communication message. |
void |
run()
Invoked when this thread is executed. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private Queue m_qMsgQueue
| Constructor Detail |
public SystemThread()
| Method Detail |
public void run()
protected abstract void init()
protected abstract void processMessage(ActorMessage p_amMsg)
p_amMsg - an actor communication message to be processed.public void deliverMessage(ActorMessage p_amMsg)
p_amMsg - an actor communication message to be delivered to this actor.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||