urv.olsr.mcast
Class MulticastGroupsTable

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

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

This class is used to relate a node with all the multicast groups which it's subscribed

Author:
Gerard Paris Aixala

Constructor Summary
MulticastGroupsTable()
           
 
Method Summary
 java.lang.Object clone()
           
 java.util.Set<OLSRNode> getGroupMembers(java.lang.String mcastAddr)
          Obtains a new HashSet with cloned copies of the members of this multicast group
 java.util.Set<MulticastAddress> getJoinedMulticastGroups(OLSRNode node)
          Returns the multicast addresses of the groups joined by the node
 boolean isMulticastGroupsTableChangedFlag()
           
 void registerMulticastGroup(OLSRNode node, java.lang.String mcastAddrName)
           
 void setMulticastGroupsTableChangedFlag(boolean multicastGroupsTableChangedFlag)
           
 java.lang.String toString()
           
 void unregisterMulticastGroup(OLSRNode node, java.lang.String mcastAddrName)
           
 void updateBwOf(OLSRNode node)
           
 void updateMulticastGroups(OLSRNode originatorNode, java.util.Set<MulticastAddress> joinedGroups)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MulticastGroupsTable

public MulticastGroupsTable()
Method Detail

clone

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

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

getGroupMembers

public java.util.Set<OLSRNode> getGroupMembers(java.lang.String mcastAddr)
Obtains a new HashSet with cloned copies of the members of this multicast group

Parameters:
mcastAddr -
Returns:

getJoinedMulticastGroups

public java.util.Set<MulticastAddress> getJoinedMulticastGroups(OLSRNode node)
Returns the multicast addresses of the groups joined by the node

Parameters:
localNode -
Returns:

registerMulticastGroup

public void registerMulticastGroup(OLSRNode node,
                                   java.lang.String mcastAddrName)

unregisterMulticastGroup

public void unregisterMulticastGroup(OLSRNode node,
                                     java.lang.String mcastAddrName)

updateMulticastGroups

public void updateMulticastGroups(OLSRNode originatorNode,
                                  java.util.Set<MulticastAddress> joinedGroups)

isMulticastGroupsTableChangedFlag

public boolean isMulticastGroupsTableChangedFlag()
Returns:
the multicastGroupsTableChangedFlag

setMulticastGroupsTableChangedFlag

public void setMulticastGroupsTableChangedFlag(boolean multicastGroupsTableChangedFlag)
Parameters:
multicastGroupsTableChangedFlag - the multicastGroupsTableChangedFlag to set