urv.olsr.mcast
Class MulticastNetworkGraph

java.lang.Object
  extended by urv.olsr.mcast.MulticastNetworkGraph
All Implemented Interfaces:
Loggable, BandwidthUpdatable

public class MulticastNetworkGraph
extends java.lang.Object
implements Loggable, BandwidthUpdatable

Author:
Gerard Paris Aixala

Constructor Summary
MulticastNetworkGraph()
          This constructor does not initialize the multicastGroupsTable.
MulticastNetworkGraph(MulticastGroupsTable multicastGroupsTable, OLSRNode localNode)
           
 
Method Summary
 void addEdge(OLSRNode node1, OLSRNode node2)
           
 void addEdges(OLSRNode node1, OLSRNode node2)
           
 void addNode(OLSRNode localNode2)
           
 java.lang.Object clone()
           
 NetworkGraph<OLSRNode,Weight> computeContractedGraph(java.lang.String mcastAddr)
          Computes the contracted graph for the specified group
 java.util.Set<OLSRNode> getGroupMembers(java.lang.String mcastAddr)
          Returns a set that includes all nodes that have joined the specified multicast group.
 MulticastGroupsTable getMulticastGroupsTable()
           
 void setCopyOfGraph(MulticastNetworkGraph newGraph)
          This method only copies the reference of the network graph (not the multicastGroupsTable)
 java.lang.String toString()
           
 void updateBwOf(OLSRNode node)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MulticastNetworkGraph

public MulticastNetworkGraph()
This constructor does not initialize the multicastGroupsTable.


MulticastNetworkGraph

public MulticastNetworkGraph(MulticastGroupsTable multicastGroupsTable,
                             OLSRNode localNode)
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface Loggable
Overrides:
toString in class java.lang.Object

updateBwOf

public void updateBwOf(OLSRNode node)
Specified by:
updateBwOf in interface BandwidthUpdatable

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

addEdge

public void addEdge(OLSRNode node1,
                    OLSRNode node2)

addEdges

public void addEdges(OLSRNode node1,
                     OLSRNode node2)

addNode

public void addNode(OLSRNode localNode2)

computeContractedGraph

public NetworkGraph<OLSRNode,Weight> computeContractedGraph(java.lang.String mcastAddr)
Computes the contracted graph for the specified group


setCopyOfGraph

public void setCopyOfGraph(MulticastNetworkGraph newGraph)
This method only copies the reference of the network graph (not the multicastGroupsTable)


getGroupMembers

public java.util.Set<OLSRNode> getGroupMembers(java.lang.String mcastAddr)
Returns a set that includes all nodes that have joined the specified multicast group.

Parameters:
mcastAddr - The multicast address of the group
Returns:
the set of the nodes of the group

getMulticastGroupsTable

public MulticastGroupsTable getMulticastGroupsTable()
Returns:
the multicastGroupsTable