SSF.OS.OSPFv2
Class NextHop

java.lang.Object
  |
  +--SSF.OS.OSPFv2.NextHop

public class NextHop
extends java.lang.Object

A class containing a router's outgoing interface ip address to use when forwarding traffic to a destination and in case of a non point-to-point network the ip address of the next router in the path towards the destination.


Field Summary
 int nextHopIPAddr
           
 int viaInterface
           
 
Constructor Summary
NextHop(int viaIntf)
          constructs a NextHop for a point-to-point network.
NextHop(int viaIntf, int nHop)
          constructs a NextHop for any other network.
 
Method Summary
 boolean equals(java.lang.Object nHopObj)
          Indicates whether a NextHop object is "equal" to this one.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextHopIPAddr

public int nextHopIPAddr

viaInterface

public int viaInterface
Constructor Detail

NextHop

public NextHop(int viaIntf)
constructs a NextHop for a point-to-point network.

Parameters:
viaIntf - IP address of the outgoing interface to use when forwarding packets to destination.

NextHop

public NextHop(int viaIntf,
               int nHop)
constructs a NextHop for any other network.

Parameters:
viaIntf - IP address of the outgoing interface to use when forwarding packets to destination.
nHop - IP address of the next hop router.
Method Detail

equals

public boolean equals(java.lang.Object nHopObj)
Indicates whether a NextHop object is "equal" to this one.

Overrides:
equals in class java.lang.Object
Parameters:
nHopObj - NextHop object to compare.
Returns:
boolean value indicating true if the Objects are equal else indicating false.