urv.omolsr.core
Class OMOLSRController

java.lang.Object
  extended by urv.omolsr.core.OMOLSRController

public class OMOLSRController
extends java.lang.Object

Author:
Marcel Arrufat Arias, Gerard Paris Aixala

Field Summary
static int INITIAL_HOPS
          The number of hops to be inserted in a new message
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
OMOLSRController(OMOLSR omolsr, OLSRNode localNode)
           
 
Method Summary
 void computeMST()
          Computes a new Mst with the current multicast network graph
 void registerOmolsrProtocol(OMOLSR protocol)
          Registers a new instance of the OMOLSR protocol to the multicast address
 void unregisterOmcastProtocol(java.lang.String groupId)
          Given its multicast address, unregisters an instance of the OMOLSR protocol
 void updateMulticastNetworkGraph(OMOLSRNetworkGraph multicastNetworkGraph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_HOPS

public static final int INITIAL_HOPS
The number of hops to be inserted in a new message

See Also:
Constant Field Values

log

protected final org.apache.commons.logging.Log log
Constructor Detail

OMOLSRController

public OMOLSRController(OMOLSR omolsr,
                        OLSRNode localNode)
Method Detail

computeMST

public void computeMST()
Computes a new Mst with the current multicast network graph


registerOmolsrProtocol

public void registerOmolsrProtocol(OMOLSR protocol)
Registers a new instance of the OMOLSR protocol to the multicast address

Parameters:
groupId - The multicast address of the group
protocol - An instance of the OMOLSR protocol

unregisterOmcastProtocol

public void unregisterOmcastProtocol(java.lang.String groupId)
Given its multicast address, unregisters an instance of the OMOLSR protocol

Parameters:
groupId - The multicast address of the group

updateMulticastNetworkGraph

public void updateMulticastNetworkGraph(OMOLSRNetworkGraph multicastNetworkGraph)