urv.olsr.data.mpr
Class MprSelectorSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<OLSRNode>
              extended by urv.olsr.data.mpr.OLSRSet
                  extended by urv.olsr.data.mpr.MprSelectorSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<OLSRNode>, java.util.Collection<OLSRNode>, java.util.Set<OLSRNode>, BandwidthUpdatable

public class MprSelectorSet
extends OLSRSet

A node records a set of MPR-selector tuples (MS_main_addr, MS_time), describing the neighbors which have selected this node as a MPR. MS_main_addr is the main address of a node, which has selected this node as MPR. MS_time specifies the time at which the tuple expires and *MUST* be removed. In a node, the set of MPR-selector tuples are denoted the "MPR Selector Set".

Author:
Gerard Paris Aixala
See Also:
Serialized Form

Field Summary
 
Fields inherited from class urv.olsr.data.mpr.OLSRSet
lock
 
Constructor Summary
MprSelectorSet(OLSRNode localNode)
           
 
Method Summary
 TcMessage createTcMessage()
           
 void setCopyOfSet(java.util.Set<OLSRNode> set)
          Adds all elements to the data set The data elements cannot be retrieved during the copy operation
 
Methods inherited from class urv.olsr.data.mpr.OLSRSet
clone, equals, getCopyOfSet, setCopyOfSet, toString, updateBwOf
 
Methods inherited from class java.util.HashSet
add, clear, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

MprSelectorSet

public MprSelectorSet(OLSRNode localNode)
Method Detail

setCopyOfSet

public void setCopyOfSet(java.util.Set<OLSRNode> set)
Description copied from class: OLSRSet
Adds all elements to the data set The data elements cannot be retrieved during the copy operation

Overrides:
setCopyOfSet in class OLSRSet

createTcMessage

public TcMessage createTcMessage()