urv.olsr.data.neighbour
Class NeighborTableEntry

java.lang.Object
  extended by urv.olsr.data.neighbour.NeighborTableEntry
All Implemented Interfaces:
java.lang.Cloneable

public class NeighborTableEntry
extends java.lang.Object
implements java.lang.Cloneable

Entry of the NeighborTable. It must contain information about the node itself, link status and node neighbors

Author:
Marcel Arrufat Arias

Constructor Summary
NeighborTableEntry(OLSRNode neighbor, LinkCode linkStatus, OLSRSet neighborsOfNeighbors)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks wether two entries are equal
 LinkCode getLinkCode()
           
 OLSRNode getNeighbor()
           
 OLSRSet getNeighborsOfNeighbors()
           
 void setLinkCode(LinkCode linkCode)
           
 void setNeighbor(OLSRNode neighbor)
           
 void setNeighborsOfNeighbors(OLSRSet neighborsOfNeighbors)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NeighborTableEntry

public NeighborTableEntry(OLSRNode neighbor,
                          LinkCode linkStatus,
                          OLSRSet neighborsOfNeighbors)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Checks wether two entries are equal

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLinkCode

public LinkCode getLinkCode()
Returns:
Returns the linkCode.

getNeighbor

public OLSRNode getNeighbor()
Returns:
Returns the neighbor.

getNeighborsOfNeighbors

public OLSRSet getNeighborsOfNeighbors()
Returns:
Returns the neighborsOfNeighbors.

setNeighbor

public void setNeighbor(OLSRNode neighbor)

setLinkCode

public void setLinkCode(LinkCode linkCode)

setNeighborsOfNeighbors

public void setNeighborsOfNeighbors(OLSRSet neighborsOfNeighbors)