DRCL J-Sim API

drcl.inet.protocol.ospf
Class OSPF_LSA

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.inet.protocol.ospf.OSPF_LSA
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
Direct Known Subclasses:
Router_LSA

public class OSPF_LSA
extends DrclObj

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
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

Method Summary
 java.lang.String _toString()
           
 java.lang.Object clone()
          Returns a clone of this object.
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
duplicate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

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

_toString

public java.lang.String _toString()

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.

Specified by:
clone in interface ObjectCloneable
Overrides:
clone in class DrclObj

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~