drcl.inet.protocol.ospf
Class OSPF_DBdesc
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.inet.protocol.ospf.OSPF_DBdesc
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- public class OSPF_DBdesc
- extends DrclObj
OSPF Database Description packet body
ref: A.3.3
Note: type = 2
- Author:
- Wei-peng Chen
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
OSPF_DBdesc(int ibit,
int mbit,
int msbit,
int seqnum)
Constructor |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OSPF_DBDESC_FIX_SIZE
protected static final int OSPF_DBDESC_FIX_SIZE
ifmtu
protected int ifmtu
dd_msbit
protected int dd_msbit
dd_mbit
protected int dd_mbit
dd_ibit
protected int dd_ibit
dd_seqnum
protected int dd_seqnum
LSA_no
protected int LSA_no
LSA_hdr_list
protected java.util.Vector LSA_hdr_list
OSPF_DBdesc
protected OSPF_DBdesc(int ibit,
int mbit,
int msbit,
int seqnum)
- Constructor
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
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().
- Overrides:
duplicate in class DrclObj
toString
public java.lang.String toString()
- Overrides:
toString in class DrclObj
reset
public void reset()
isduplicate
protected static int isduplicate(OSPF_DBdesc db1,
OSPF_DBdesc db2)
addlsaheader
protected void addlsaheader(OSPF_LSA_Header hdr)
size
public int size()
setMbit
protected void setMbit(int mbit_)
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~