urv.olsr.message
Class HelloMessage

java.lang.Object
  extended by urv.olsr.message.HelloMessage
All Implemented Interfaces:
org.jgroups.util.Streamable, OLSRMessage

public class HelloMessage
extends java.lang.Object
implements OLSRMessage

A common mechanism is employed for populating the local link information base and the neighborhood information base, namely periodic exchange of HELLO messages.

Author:
Gerard Paris Aixala

Constructor Summary
HelloMessage()
           
HelloMessage(HashMapSet<LinkCode,OLSRNode> map)
           
 
Method Summary
 HashMapSet<LinkCode,OLSRNode> getMessageInfo()
           
 void readFrom(java.io.DataInputStream in)
           
 java.lang.String toString()
          Returns a String representation of this HELLO message
 void writeTo(java.io.DataOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HelloMessage

public HelloMessage()

HelloMessage

public HelloMessage(HashMapSet<LinkCode,OLSRNode> map)
Method Detail

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()
Returns a String representation of this HELLO message

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

getMessageInfo

public HashMapSet<LinkCode,OLSRNode> getMessageInfo()