SSF.OS.OSPF
Class Interface

java.lang.Object
  |
  +--SSF.OS.OSPF.Interface

public class Interface
extends java.lang.Object

An OSPF interface.


Field Summary
 int area_num
           
 java.lang.String as_nh
           
 int cost
           
 int ipaddr
           
 byte ipmask
           
 int p2paddr
           
 int peer_area_num
           
 java.lang.String peer_as_nh
           
 java.lang.String peer_nh
           
 java.lang.String rtrnh
           
 int state
           
 int typ
           
 
Constructor Summary
Interface(int t, int ipa, int p2pa, byte mask, int st, java.lang.String nh, java.lang.String asnh, int areano, java.lang.String peer_asnh, int peer_areano, java.lang.String peernh, int c)
           
 
Method Summary
 java.lang.String toMinString()
          Converts the interface to a string using a briefer format than toString.
 java.lang.String toMinString(boolean usenhi)
          Converts the interface to a string using a briefer format than toString.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

typ

public int typ

ipaddr

public int ipaddr

p2paddr

public int p2paddr

ipmask

public byte ipmask

state

public int state

rtrnh

public java.lang.String rtrnh

as_nh

public java.lang.String as_nh

area_num

public int area_num

peer_as_nh

public java.lang.String peer_as_nh

peer_area_num

public int peer_area_num

peer_nh

public java.lang.String peer_nh

cost

public int cost
Constructor Detail

Interface

public Interface(int t,
                 int ipa,
                 int p2pa,
                 byte mask,
                 int st,
                 java.lang.String nh,
                 java.lang.String asnh,
                 int areano,
                 java.lang.String peer_asnh,
                 int peer_areano,
                 java.lang.String peernh,
                 int c)
Method Detail

toString

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

toMinString

public java.lang.String toMinString(boolean usenhi)
Converts the interface to a string using a briefer format than toString.

Parameters:
usenhi - Whether or not to use NHI addressing when possible.
Returns:
the interface in minimal string format

toMinString

public java.lang.String toMinString()
Converts the interface to a string using a briefer format than toString.

Returns:
the interface in minimal string format