DRCL J-Sim API

drcl.inet.protocol.ospf
Class OSPF_LSrequest

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

public class OSPF_LSrequest
extends DrclObj

Link State Request packet body.

Ref: A.3.4. Note: type = 3

Author:
Wei-peng Chen
See Also:
Serialized Form

Nested Class Summary
 class OSPF_LSrequest.LSrequest_body
           
 
Field Summary
 int ls_req_num
           
static int OSPF_LS_REQUEST_PKT_SIZE
           
 java.util.Vector req_list
           
 
Constructor Summary
OSPF_LSrequest()
           
OSPF_LSrequest(int no)
           
OSPF_LSrequest(int type, int id, int adv)
           
 
Method Summary
 void addreq(int type, int id, int adv)
           
 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OSPF_LS_REQUEST_PKT_SIZE

public static final int OSPF_LS_REQUEST_PKT_SIZE
See Also:
Constant Field Values

ls_req_num

public int ls_req_num

req_list

public java.util.Vector req_list
Constructor Detail

OSPF_LSrequest

public OSPF_LSrequest()

OSPF_LSrequest

public OSPF_LSrequest(int no)

OSPF_LSrequest

public OSPF_LSrequest(int type,
                      int id,
                      int adv)
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 ObjectCloneable
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

addreq

public void addreq(int type,
                   int id,
                   int adv)

toString

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

DRCL J-Sim API

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