gov.nist.antd.mpls.mgmt.fwrd_table
Class ForwardingInformation

java.lang.Object
  |
  +--gov.nist.antd.mpls.mgmt.fwrd_table.ForwardingInformation
Direct Known Subclasses:
FTN, ILMEntry, TunnelInfo

public class ForwardingInformation
extends java.lang.Object

Class ForwardingInformation

This ForwardingInformation class is the super class of the FTN, ILMEntry and tunnelInfo calss.
This calss provides its child classes with commen functions such as NHLFEList(Vector) to maintain switching informations.

 This class was developed at the National Institute of Standards and
 Technology by employees of the Federal Government in the course of
 their official duties. Pursuant to title 17 Section 105 of the United
 States Code this software is not subject to copyright protection and
 is in the public domain.
 NIST assumes no responsibility whatsoever for its use by other parties,
 and makes no guarantees, expressed or implied, about its quality,
 reliability, or any other characteristic.
 
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.

Author:
EunHyuk Lim (ehlim@antd.nist.gov, othree28@hotmail.com)
, borchert , Chul Kim

Field Summary
 int index
          Field index - Forwarding information Index
 java.util.Vector NHLFEList
          Field NHLFEList - NHLFEs that the this interface handle
 
Constructor Summary
ForwardingInformation()
          Constructor ForwardingInformation
 
Method Summary
 void addNHLFE(NHLFE nhlfe, boolean isIngress)
          Method addNHLFE Add new NHLFE to the list
 java.util.Vector getBackupNHLFEList()
          Method getBackupNHLFEList Get the Backup NHLFEs
 NHLFE getNHLFEEntry(int ingresslsrid, int locallspid)
          Method getNHLFEEntry Get the NHLFE entry based on the Ingress LSR ID and Local LSP ID
 NHLFE getNHLFEEntry(java.lang.String pathid)
          Method getNHLFEEntry Get the NHLFE entry based on path ID
 boolean isNHLFEEntry(int ingresslsrid, int locallspid)
          Method isNHLFEEntry Check whether the specific LSP has the NHLFE entry.
 boolean isNHLFEEntry(java.lang.String pathid)
          Method isNHLFEEntry Check whether the specific Path has the NHLFE entry
 boolean isNHLFEEntryEmpty()
          Method isNHLFEEntryEmpty Check the NHLFE List
 boolean removeNHLFE(int ingresslsrid, int locallspid)
          Method removeNHLFE Remove the specific NHLFE from the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public int index
Field index - Forwarding information Index


NHLFEList

public java.util.Vector NHLFEList
Field NHLFEList - NHLFEs that the this interface handle

Constructor Detail

ForwardingInformation

public ForwardingInformation()
Constructor ForwardingInformation

Method Detail

isNHLFEEntryEmpty

public boolean isNHLFEEntryEmpty()
Method isNHLFEEntryEmpty Check the NHLFE List

Returns:
boolean - True if the NHLFE list is empty

addNHLFE

public void addNHLFE(NHLFE nhlfe,
                     boolean isIngress)
Method addNHLFE Add new NHLFE to the list

Parameters:
nhlfe - -
isIngress - - True if this node is ingress node

removeNHLFE

public boolean removeNHLFE(int ingresslsrid,
                           int locallspid)
Method removeNHLFE Remove the specific NHLFE from the list

Parameters:
ingresslsrid - - Ingress LSR ID
locallspid - - Local LSP ID
Returns:
boolean - True if the removing procedure is success

isNHLFEEntry

public boolean isNHLFEEntry(int ingresslsrid,
                            int locallspid)
Method isNHLFEEntry Check whether the specific LSP has the NHLFE entry.

Parameters:
ingresslsrid - - Ingress LSR ID
locallspid - - Local LSP ID
Returns:
boolean - True if this LSP has the NHLFE entry

isNHLFEEntry

public boolean isNHLFEEntry(java.lang.String pathid)
Method isNHLFEEntry Check whether the specific Path has the NHLFE entry

Parameters:
pathid - - Specific Path ID
Returns:
boolean - True if this LSP has the NHLFE entry

getNHLFEEntry

public NHLFE getNHLFEEntry(java.lang.String pathid)
Method getNHLFEEntry Get the NHLFE entry based on path ID

Parameters:
pathid - - Specific Path ID
Returns:
NHLFE - NHLFE that has the specific Path ID

getNHLFEEntry

public NHLFE getNHLFEEntry(int ingresslsrid,
                           int locallspid)
Method getNHLFEEntry Get the NHLFE entry based on the Ingress LSR ID and Local LSP ID

Parameters:
ingresslsrid - - Ingress LSR ID
locallspid - - Local LSP ID
Returns:
NHLFE

getBackupNHLFEList

public java.util.Vector getBackupNHLFEList()
Method getBackupNHLFEList Get the Backup NHLFEs

Returns:
Vector