|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.inet.protocol.dv.DVPacket
Defines the format of the packet used by DV.
The format is simplified from what is defined in RFC2453.
| Constructor Summary | |
DVPacket()
|
|
DVPacket(int cmd_,
int version_)
|
|
| Method Summary | |
void |
addRTE(long dest_,
long mask_,
long nexthop_,
int metric_)
|
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. |
int |
getCommand()
Returns the command of this packet. |
int |
getNumRTEs()
|
drcl.inet.protocol.dv.DVPacket.RTE |
getRTE(int index_)
|
drcl.inet.protocol.dv.DVPacket.RTE[] |
getRTEs()
|
int |
getVersion()
Returns the version of this packet. |
void |
setCommand(int value_)
|
void |
setVersion(int value_)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DVPacket()
public DVPacket(int cmd_,
int version_)
| Method Detail |
public int getCommand()
public int getVersion()
public void addRTE(long dest_,
long mask_,
long nexthop_,
int metric_)
public void setCommand(int value_)
public void setVersion(int value_)
public int getNumRTEs()
public drcl.inet.protocol.dv.DVPacket.RTE getRTE(int index_)
public drcl.inet.protocol.dv.DVPacket.RTE[] getRTEs()
public void duplicate(java.lang.Object source_)
DrclObjsource_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
duplicate in interface ObjectDuplicableduplicate in class DrclObjpublic java.lang.Object clone()
DrclObjDrclObj.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.
clone in interface ObjectDuplicableclone in class DrclObjpublic java.lang.String toString()
toString in class DrclObj
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||