DRCL J-Sim API

drcl.inet.data
Class RTEntry

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.inet.data.RTEntry
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class RTEntry
extends DrclObj

The routing table entry class.

Version:
1.0, 10/17/2000
Author:
Hung-ying Tyan
See Also:
RTKey, Serialized Form

Field Summary
 ACATimer handle
           
 
Constructor Summary
RTEntry()
           
RTEntry(BitSet bsOutIf_)
           
RTEntry(BitSet bsOutIf_, java.lang.Object extension_)
           
RTEntry(long nexthop_, BitSet bsOutIf_)
           
RTEntry(long nexthop_, BitSet bsOutIf_, java.lang.Object extension_)
           
RTEntry(RTKey key_, BitSet bsOutIf_, java.lang.Object extension_, double timeout_)
           
RTEntry(RTKey key_, long nexthop_, BitSet bsOutIf_, java.lang.Object extension_, double timeout_)
           
 
Method Summary
 int[] _getOutIfs()
          Returns the (grafted) outgoing interfaces.
 double _getTimeout()
           
 void _setTimeout(double t_)
           
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 boolean equals(java.lang.Object o_)
           
 java.lang.Object getExtension()
           
 RTKey getKey()
           
 long getNextHop()
           
 BitSet getOutIf()
          Returns the bit set of interfaces.
 boolean graft(int whichIf)
          Grafts the specified interface.
 boolean isPruned(int whichIf)
          Returns the prune state of the specified interface.
 boolean prune(int whichIf)
          Prunes the specified interface.
 void setExtension(java.lang.Object ex_)
           
 void setKey(RTKey k)
           
 void setNextHop(long nexthop_)
           
 void setOutIf(BitSet outIf)
          Sets the outgoing interfaces by a bit set.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String prefix)
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

handle

public ACATimer handle
Constructor Detail

RTEntry

public RTEntry(BitSet bsOutIf_)

RTEntry

public RTEntry(BitSet bsOutIf_,
               java.lang.Object extension_)

RTEntry

public RTEntry(RTKey key_,
               BitSet bsOutIf_,
               java.lang.Object extension_,
               double timeout_)

RTEntry

public RTEntry(long nexthop_,
               BitSet bsOutIf_)

RTEntry

public RTEntry(long nexthop_,
               BitSet bsOutIf_,
               java.lang.Object extension_)

RTEntry

public RTEntry(RTKey key_,
               long nexthop_,
               BitSet bsOutIf_,
               java.lang.Object extension_,
               double timeout_)

RTEntry

public RTEntry()
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

setKey

public void setKey(RTKey k)

getKey

public RTKey getKey()

setNextHop

public void setNextHop(long nexthop_)

getNextHop

public long getNextHop()

getOutIf

public BitSet getOutIf()
Returns the bit set of interfaces. An unset bit indicates that the corresponding interface is pruned.


_getOutIfs

public int[] _getOutIfs()
Returns the (grafted) outgoing interfaces.


setOutIf

public void setOutIf(BitSet outIf)
Sets the outgoing interfaces by a bit set. One bit corresponds to one interface. A bit set (true) indicates a grafted interface. An unset bit indicates a pruned interface.


prune

public boolean prune(int whichIf)
Prunes the specified interface.

Parameters:
whichIf - index of the interface that's got pruned.

graft

public boolean graft(int whichIf)
Grafts the specified interface.

Parameters:
whichIf - index of the interface that's got grafted.

isPruned

public boolean isPruned(int whichIf)
Returns the prune state of the specified interface.


setExtension

public void setExtension(java.lang.Object ex_)

getExtension

public java.lang.Object getExtension()

_getTimeout

public double _getTimeout()

_setTimeout

public void _setTimeout(double t_)

toString

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

toString

public java.lang.String toString(java.lang.String prefix)

equals

public boolean equals(java.lang.Object o_)

DRCL J-Sim API

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