DRCL J-Sim API

drcl.inet.protocol.dvmrp
Class DVMRPRTExtension

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

public class DVMRPRTExtension
extends DrclObj

Routing table entry extension for DVMRP. Specifically, it keeps the interfaces and the addresses of the downstream dependents, the metric of the routing entry, and the "changed" flag.

See Also:
Serialized Form

Constructor Summary
DVMRPRTExtension()
           
DVMRPRTExtension(int metric_)
           
DVMRPRTExtension(int metric_, BitSet dependentIfs_, long[] dependents_, boolean changed_)
           
 
Method Summary
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 int getDependentIndex(long target_)
           
static java.lang.String getTitle()
           
 void resetDependents()
           
 void resetDependents(BitSet dependentIfs_)
           
 void setDependent(int index_, long dependent_)
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DVMRPRTExtension

public DVMRPRTExtension()

DVMRPRTExtension

public DVMRPRTExtension(int metric_)

DVMRPRTExtension

public DVMRPRTExtension(int metric_,
                        BitSet dependentIfs_,
                        long[] dependents_,
                        boolean changed_)
Method Detail

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

resetDependents

public void resetDependents(BitSet dependentIfs_)

resetDependents

public void resetDependents()

getDependentIndex

public int getDependentIndex(long target_)
Returns:
a valid (>=0) interface index if target_ is one of the dependents

setDependent

public void setDependent(int index_,
                         long dependent_)

toString

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

getTitle

public static java.lang.String getTitle()

DRCL J-Sim API

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