DRCL J-Sim API

drcl.inet.protocol.ospf
Class Router_LSA

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

public class Router_LSA
extends OSPF_LSA

OSPF Router-LSAs structure. Router LSAs are flooded through its area and no further. Ref: sec 12.4.1

Author:
Wei-peng Chen
See Also:
Serialized Form

Method Summary
 java.lang.Object clone()
          Returns a clone of this object.
 void duplicate(java.lang.Object source_)
          duplicate the router lsa
 java.lang.String toString()
           
 
Methods inherited from class drcl.inet.protocol.ospf.OSPF_LSA
_toString
 
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 OSPF_LSA

duplicate

public void duplicate(java.lang.Object source_)
duplicate the router lsa

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class DrclObj

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 OSPF_LSA

DRCL J-Sim API

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