urv.olsr.data.neighbour
Class NeighborTableEntry
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NeighborTableEntry
public NeighborTableEntry(OLSRNode neighbor,
LinkCode linkStatus,
OLSRSet neighborsOfNeighbors)
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)