DRCL JavaSim API

drcl.inet.protocol.ospf
Class OSPF_LSA

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.inet.protocol.ospf.OSPF_LSA
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
Direct Known Subclasses:
Router_LSA

public class OSPF_LSA
extends DrclObj

Class OSPF_LSA (Link State Advertisement) Ref: RFC 2328 sec. 4.3 Table 9 Type LSA Name Originate from Content Extent Originator 1 Router-LSAs all routers states of the router's interface to an area intra-area Router 2 Network-LSAs brocast and MBMA list of routers connected to the network intra-area network's desiginated router 3,4 Summary-LSAs area border router 3: router to networks outside this area inter-area area border router 4: router to AS boundary router inter-area area border router 5 As-external-LSAa AS boundary router a route to a dest. in another AS inter-AS AS boundary router except type 5, all other four types are flooded through a single area only. Type 5 is flooded through the entire AS

Author:
Wei-peng Chen
See Also:
OSPF_LSA_Header, Router_LSA, Serialized Form

Field Summary
protected  int floodback_flag
           
protected  OSPF_Neighbor from
           
protected  OSPF_LSA_Header header
           
protected static int OSPF_LSA_HEADER_SIZE
           
protected  java.lang.Object scope
           
 
Constructor Summary
protected OSPF_LSA()
          Constructor
protected OSPF_LSA(OSPF_LSA_Header header_)
          Constructor
 
Method Summary
 java.lang.String _toString()
           
 java.lang.Object clone()
          Returns a clone of this object.
protected  OSPF_LSA_Header getHeader()
           
protected  int size()
          return the size of the LSA
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
duplicate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OSPF_LSA_HEADER_SIZE

protected static final int OSPF_LSA_HEADER_SIZE

floodback_flag

protected int floodback_flag

from

protected OSPF_Neighbor from

scope

protected java.lang.Object scope

header

protected OSPF_LSA_Header header
Constructor Detail

OSPF_LSA

protected OSPF_LSA()
Constructor

OSPF_LSA

protected OSPF_LSA(OSPF_LSA_Header header_)
Constructor
Method Detail

getHeader

protected OSPF_LSA_Header getHeader()

toString

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

_toString

public java.lang.String _toString()

size

protected int size()
return the size of the LSA

clone

public java.lang.Object clone()
Description copied from class: DrclObj
Returns a clone of this object. By default, this method creates an object of the same class and calls DrclObj.duplicate(Object) to duplicate the content of this object to the newly-created one.

This method uses getClass().newInstance() to create new instance. Hence, subclasses need to override this method only if the subclass is not declared as public or does not have explicit no-argument constructor. A subclass may override this method for performance reason.

Overrides:
clone in class DrclObj

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~