urv.olsr.message
Class TcMessage
java.lang.Object
urv.olsr.message.TcMessage
- All Implemented Interfaces:
- java.io.Serializable, org.jgroups.util.Streamable, OLSRMessage
public class TcMessage
- extends java.lang.Object
- implements OLSRMessage, java.io.Serializable
A TC message is sent by a node in the network to declare a set of
links, called advertised link set which MUST include at least the
links to all nodes of its MPR Selector set, i.e., the neighbors which
have selected the sender node as a MPR.
If, for some reason, it is required to distribute redundant TC
information, refer to section 15.
The sequence number (ANSN) associated with the advertised neighbor
set is also sent with the list. The ANSN number MUST be incremented
when links are removed from the advertised neighbor set; the ANSN
number SHOULD be incremented when links are added to the advertised
neighbor set.
- Author:
- Gerard Paris Aixala
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TcMessage
public TcMessage()
TcMessage
public TcMessage(SequenceNumber ansn,
OLSRSet advertisedNeighbours)
readFrom
public void readFrom(java.io.DataInputStream in)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Specified by:
readFrom
in interface org.jgroups.util.Streamable
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
writeTo
public void writeTo(java.io.DataOutputStream out)
throws java.io.IOException
- Specified by:
writeTo
in interface org.jgroups.util.Streamable
- Throws:
java.io.IOException
setJoinedMulticastGroups
public void setJoinedMulticastGroups(java.util.Set<MulticastAddress> joinedMulticastGroups)
getAdvertisedNeighbors
public OLSRSet getAdvertisedNeighbors()
- Returns:
- Returns the advertisedNeighbors.
getAnsn
public SequenceNumber getAnsn()
- Returns:
- Returns the ansn.
getJoinedMulticastGroups
public java.util.Set<MulticastAddress> getJoinedMulticastGroups()
- Returns:
- the joinedMulticastGroups