gov.nist.antd.merlin.protocol.discovery
Class NeighbourTable.NeighbourEntry

java.lang.Object
  |
  +--gov.nist.antd.merlin.protocol.discovery.NeighbourTable.NeighbourEntry
Enclosing class:
NeighbourTable

public class NeighbourTable.NeighbourEntry
extends java.lang.Object

Inner class to represent an entry


Field Summary
static int BIDIR
          Constant for the directionality.
 int directionality
          Directionality of the link
 int localPort
          Local port ID
 int nodeID
          Neighbour node ID
 int portID
          Neighbour port ID
static int RECEIVE
          Constant for the directionality.
static int TRANSMIT
          Constant for the directionality.
 
Constructor Summary
NeighbourTable.NeighbourEntry(int localPort, int neighbNodeId, int neighbPortId, int direction)
          Constructor
 
Method Summary
 java.lang.String toString()
          Return the entry information as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

localPort

public int localPort
Local port ID


nodeID

public int nodeID
Neighbour node ID


portID

public int portID
Neighbour port ID


TRANSMIT

public static final int TRANSMIT
Constant for the directionality. TRANSMIT

See Also:
Constant Field Values

RECEIVE

public static final int RECEIVE
Constant for the directionality. RECEIVE

See Also:
Constant Field Values

BIDIR

public static final int BIDIR
Constant for the directionality. BIDIR

See Also:
Constant Field Values

directionality

public int directionality
Directionality of the link

Constructor Detail

NeighbourTable.NeighbourEntry

public NeighbourTable.NeighbourEntry(int localPort,
                                     int neighbNodeId,
                                     int neighbPortId,
                                     int direction)
Constructor

Parameters:
localPort - The local port ID
neighbNodeId - The neighbour node ID
neighbPortId - The neighbour port ID
direction - Directionality of the link
Method Detail

toString

public java.lang.String toString()
Return the entry information as a String.

Overrides:
toString in class java.lang.Object
Returns:
The entry information as a String.