|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.inet.protocol.dvmrp.DVMRPFCPacket
Defines the format of the packets used by DVMRP to exchange forwarding table
with neighbors.
| Constructor Summary | |
DVMRPFCPacket()
|
|
DVMRPFCPacket(int version_,
long src_,
long group_,
long srcmask_,
boolean ack_)
Creates a graft(-ack) packet. |
|
DVMRPFCPacket(int version_,
long src_,
long group_,
long srcmask_,
int pruneLifetime_)
Creates a prune packet |
|
| Method Summary | |
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()
|
long |
getGroup()
Retrieves the group field. |
int |
getPruneLifetime()
Retrieves the prune lifetime field. |
long |
getSource()
Retrieves the source field. |
long |
getSourceMask()
Retrieves the source network mask field. |
int |
getVersion()
|
boolean |
isGraft()
|
boolean |
isGraftAck()
|
boolean |
isPrune()
|
void |
setCommand(int value_)
|
void |
setGroup(long value_)
|
void |
setPruneLifetime(int value_)
|
void |
setSource(long value_)
|
void |
setSourceMask(long value_)
|
void |
setVersion(int value_)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DVMRPFCPacket()
public DVMRPFCPacket(int version_,
long src_,
long group_,
long srcmask_,
int pruneLifetime_)
pruneLifetime_ - in seconds.
public DVMRPFCPacket(int version_,
long src_,
long group_,
long srcmask_,
boolean ack_)
| Method Detail |
public int getCommand()
public int getVersion()
public boolean isPrune()
public boolean isGraft()
public boolean isGraftAck()
public long getSource()
public long getGroup()
public long getSourceMask()
public int getPruneLifetime()
public void setCommand(int value_)
public void setVersion(int value_)
public void setSource(long value_)
public void setSourceMask(long value_)
public void setGroup(long value_)
public void setPruneLifetime(int value_)
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 ObjectCloneableclone in class DrclObjpublic java.lang.String toString()
toString in class DrclObj
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||