drcl.inet.protocol.ospf
Class OSPF_Hello
java.lang.Object
drcl.DrclObj
drcl.inet.protocol.ospf.OSPF_Hello
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- public class OSPF_Hello
- extends DrclObj
- See Also:
- Serialized Form
|
Method Summary |
protected void |
add_neighbor_id(int id)
|
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. |
protected int |
get_hello_interval()
|
protected int |
get_router_dead_interval()
|
protected void |
set_neighbor_id(java.util.Vector list)
|
protected int |
size()
return the packet length of Hello Body (in byte) , which excludes the OSPF header length
Network Mask: 4, HelloInterval:2, Options:1, Rtr Pri:1, RouterDeadInterval: 4
Designated Router: 4, Backup: 4, the sum of the above items is assigned to
FIX_HELLO_LEN = 20, Neighbor: each 4 byte |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
neighbor_no
protected int neighbor_no
neighbor_id_list
protected java.util.Vector neighbor_id_list
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
get_hello_interval
protected int get_hello_interval()
get_router_dead_interval
protected int get_router_dead_interval()
set_neighbor_id
protected void set_neighbor_id(java.util.Vector list)
add_neighbor_id
protected void add_neighbor_id(int id)
size
protected int size()
- return the packet length of Hello Body (in byte) , which excludes the OSPF header length
Network Mask: 4, HelloInterval:2, Options:1, Rtr Pri:1, RouterDeadInterval: 4
Designated Router: 4, Backup: 4, the sum of the above items is assigned to
FIX_HELLO_LEN = 20, Neighbor: each 4 byte
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~