J-Sim v1.2.1-p7 API

drcl.inet.protocol.ospf
Class OSPF_LSupdate

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

public class OSPF_LSupdate
extends DrclObj

Link State Update Packet Body. This request pkt can carry several LSAs one hop further from their origin.

Ref: A.3.5. Note : type = 4

See Also:
Serialized Form

Field Summary
 int lsupdate_num
           
 
Constructor Summary
OSPF_LSupdate()
           
OSPF_LSupdate(int no)
           
OSPF_LSupdate(OSPF_LSA lsa)
           
 
Method Summary
 void addlsa(OSPF_LSA lsa)
           
 java.lang.Object clone()
          Returns a clone of this object.
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lsupdate_num

public int lsupdate_num
Constructor Detail

OSPF_LSupdate

public OSPF_LSupdate()

OSPF_LSupdate

public OSPF_LSupdate(int no)

OSPF_LSupdate

public OSPF_LSupdate(OSPF_LSA lsa)
Method Detail

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 ObjectDuplicable
Overrides:
clone in class DrclObj

duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

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

addlsa

public void addlsa(OSPF_LSA lsa)

toString

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

J-Sim v1.2.1-p7 API

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