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.
 java.lang.String neighbourNodeNhi
          Neighbour node NHI.
 int neighbourPortID
          Neighbour port ID.
static int RECEIVE
          Constant for the directionality.
static int TRANSMIT
          Constant for the directionality.
 
Constructor Summary
NeighbourTable.NeighbourEntry(int localPort, java.lang.String neighbNodeNhi, int neighbPortId, int direction)
          Constructor.
 
Method Summary
 java.lang.String const_STR(int direction)
           
 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

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

localPort

public int localPort
Local port ID.


neighbourNodeNhi

public java.lang.String neighbourNodeNhi
Neighbour node NHI.


neighbourPortID

public int neighbourPortID
Neighbour port ID.


directionality

public int directionality
Directionality of the link.

Constructor Detail

NeighbourTable.NeighbourEntry

public NeighbourTable.NeighbourEntry(int localPort,
                                     java.lang.String neighbNodeNhi,
                                     int neighbPortId,
                                     int direction)
Constructor.

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

const_STR

public final java.lang.String const_STR(int direction)

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.