|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFourMS.MessageDispatcher
public abstract class MessageDispatcher
This class is a base class for the message dispatcher
subclasses. It provides methods to process the incoming message
to assist the dispatcher in distributing the instructions that have
come in to the objects which will be responsible for performing the
semantics associated with the instruction.
For instance, sometimes a ER412 protocol message may be sent to the
software which may have many instructions to be carried out by the
software system e.g.
Field Summary | |
---|---|
private FourMSMessage |
currentMessageToProcess
This is message which is currently being processed by the class and will be used for returning the next 4MS instruction |
private int |
NextMessageToReturn
This is the next message to return when the caller calls the ExtractNext4MSInstruction method. |
Constructor Summary | |
---|---|
MessageDispatcher()
|
Method Summary | |
---|---|
java.lang.String |
ExtractNext4MSInstruction()
This method will return the next instruction to be processed by the system. |
java.lang.String |
ExtractNext4MSInstruction(FourMSMessage IncomingMessageData)
This method will return the next instruction to be processed by the system. |
private java.lang.String |
fetchNextMessage()
This will be used to return the next 4MS message if there is one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int NextMessageToReturn
private FourMSMessage currentMessageToProcess
Constructor Detail |
---|
public MessageDispatcher()
Method Detail |
---|
public java.lang.String ExtractNext4MSInstruction()
public java.lang.String ExtractNext4MSInstruction(FourMSMessage IncomingMessageData)
IncomingMessageData
- This will be stored and subsequent
calls to this method without this parameter specified will
result in the next message being returned.
private java.lang.String fetchNextMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |