drcl.inet.data
Class RTEntry
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.inet.data.RTEntry
- All Implemented Interfaces:
- java.lang.Cloneable, 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
|
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_)
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
handle
public ACATimer handle
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()
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().
- 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_)
- Overrides:
equals in class java.lang.Object
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~