|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object urv.olsr.core.OLSRController
public class OLSRController
This class contains all necessary structures to perform routing with OLSR (one per node (i.e. one per each different IP)
Method Summary | |
---|---|
static OLSRController |
getInstance(OLSRNode localNode,
OLSRMessageSender messageSender)
In an emulated environment, the first OLSR instance will be the messageSender |
void |
handleIncomingControlMessage(org.jgroups.Message msg)
Process the incoming messages from |
java.lang.Object |
handleOutgoingDataMessage(org.jgroups.Message msg,
OLSRNode dest,
java.lang.String mcast_addr_name)
This method uses the routing table to determine |
void |
registerMessageUpper(java.lang.String mcast_addr_name,
OLSRMessageUpper olsrProtocol)
Registers an OLSR protocol in order to forward an incoming data message to the correct protocol stack (depending on the mcast_addr_name) |
void |
registerMulticastGroup(java.lang.String mcast_addr_name)
|
void |
sendExtraTCMessage()
|
void |
sendMessageToStack(org.jgroups.Message msg,
java.lang.String mcastAddr)
Forwards an incoming data message to the correct protocol stack (depending on the mcast_addr_name) |
void |
sendTopologyInformationEvent()
This methods is used to send topology events to the above layer. |
void |
unregisterMulticastGroup(java.lang.String mcast_addr_name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OLSRController getInstance(OLSRNode localNode, OLSRMessageSender messageSender)
localNode
- messageSender
-
public void sendTopologyInformationEvent()
sendTopologyInformationEvent
in interface TopologyInformationSender
TopologyEvent
public void handleIncomingControlMessage(org.jgroups.Message msg)
msg
- public java.lang.Object handleOutgoingDataMessage(org.jgroups.Message msg, OLSRNode dest, java.lang.String mcast_addr_name)
msg
- dest
- mcast_addr_name
-
public void registerMessageUpper(java.lang.String mcast_addr_name, OLSRMessageUpper olsrProtocol)
mcast_addr_name
- olsrProtocol
- public void registerMulticastGroup(java.lang.String mcast_addr_name)
public void sendExtraTCMessage()
public void sendMessageToStack(org.jgroups.Message msg, java.lang.String mcastAddr)
msg
- mcastAddr
- public void unregisterMulticastGroup(java.lang.String mcast_addr_name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |