|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFourMS.MessageDispatcher
FourMS.FourMSControllerMessageDispatcher
public class FourMSControllerMessageDispatcher
This class will be responsible for dispatching any incoming messages from the 4MS and send them to the mechanisms to be processed. This class will be used by the MessageHandler class when a new message is received from the 4MS and needs the message to be sent to the mechanism.
Field Summary | |
---|---|
private FourMSController |
ER412Controller
We will use this to dispatch the messages to the simulator object for processing |
private java.util.Hashtable<java.lang.String,Mechanism> |
ER412Mechanisms
Stores references to mechanism objects so that when a message comes back destined for that mechanism, it can inform it. |
MessageHandler |
SyslogMessageHandler
This is a syslog object which will be used to report errors etc |
Constructor Summary | |
---|---|
FourMSControllerMessageDispatcher(MessageHandler SyslogMessageHandler,
FourMSController ER412Controller)
This the constructor of the class |
Method Summary | |
---|---|
boolean |
dispatchIncoming4MSMessage(FourMSMessage IncomingMessage)
This method will be responsible for going through the mechanisms that it knows about and then passing on to the appropriate ER412 software mechanism, the details of the message so that it can be processed. |
void |
setMechanismListeners(java.util.Hashtable<java.lang.String,Mechanism> ER412Mechanisms)
Used to set the ER412Mechanisms which will be informed when there is an incoming message which is bound for one of them |
Methods inherited from class FourMS.MessageDispatcher |
---|
ExtractNext4MSInstruction, ExtractNext4MSInstruction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Hashtable<java.lang.String,Mechanism> ER412Mechanisms
private FourMSController ER412Controller
public MessageHandler SyslogMessageHandler
Constructor Detail |
---|
public FourMSControllerMessageDispatcher(MessageHandler SyslogMessageHandler, FourMSController ER412Controller)
SyslogMessageHandler
- Used in order to send errors and debug
to the syslogER412Controller
- This is an instance of the 4MS controller objectMethod Detail |
---|
public boolean dispatchIncoming4MSMessage(FourMSMessage IncomingMessage)
dispatchIncoming4MSMessage
in interface iDispatchMessageInterface
IncomingMessage
- This is the incoming message after it
has been processed, validated and broken down into it's
constituent parts
public void setMechanismListeners(java.util.Hashtable<java.lang.String,Mechanism> ER412Mechanisms)
ER412Mechanisms
- This is a hash of mechanisms which
must implement the i4MSMessageListenerInterface
interface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |