Class OSPF_Database

java.lang.Object
   |
   +----OSPF_Database

public class OSPF_Database
extends Object

Variable Index

 o Area
 o AS
 o ASboundary
 o ASExt
 o numOfNodes
 o RouterLink
 o SummaryNet

Constructor Index

 o OSPF_Database(int, int, int)

Method Index

 o getASboundary()
Returns a list of all the AS boundary routers in this database.
 o getStubNetworks()
Returns a list of all the stub network links in this database.
 o getSummaryNets()
Returns a list of all the stub network links in other databases.
 o print()
Prints this OSPF Database.
 o print(int)
 o sameGateway()
 o updateRouterLink(int, OSPF_LSA_Node)
 o updateSummaryNet(int, LSAList)
Updates the summary network part of the database, where i is the node in the summary to update.

Variables

 o AS
 public int AS
 o Area
 public int Area
 o numOfNodes
 public int numOfNodes
 o RouterLink
 public LSAList RouterLink[]
 o SummaryNet
 public LSAList SummaryNet[]
 o ASboundary
 public LSAList ASboundary[]
 o ASExt
 public LSAList ASExt[]

Constructors

 o OSPF_Database
 public OSPF_Database(int as,
                      int area,
                      int numNodes)

Methods

 o print
 public void print()
Prints this OSPF Database.

 o print
 public void print(int type)
 o getStubNetworks
 public LSAList getStubNetworks()
Returns a list of all the stub network links in this database.

 o getSummaryNets
 public LSAList getSummaryNets()
Returns a list of all the stub network links in other databases.

 o getASboundary
 public LSAList getASboundary()
Returns a list of all the AS boundary routers in this database.

 o updateRouterLink
 public void updateRouterLink(int i,
                              OSPF_LSA_Node newNode)
 o updateSummaryNet
 public void updateSummaryNet(int i,
                              LSAList stub)
Updates the summary network part of the database, where i is the node in the summary to update.

 o sameGateway
 public void sameGateway()