|
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.data.MapKey
drcl.inet.data.RTKey
The key class to the routing table entry.
RTEntry,
Serialized Form| Field Summary |
| Fields inherited from class drcl.data.MapKey |
mask, value |
| Constructor Summary | |
RTKey()
|
|
RTKey(long src_,
long dest_,
int incoming_)
Creates an RTKey given source, destination and incoming interface. |
|
RTKey(long src_,
long srcmask_,
long dest_,
long destmask_,
int incoming_,
int incomingmask_)
Creates an RTKey given source, destination, incoming interface and masks. |
|
| Method Summary | |
long |
getDestination()
|
long |
getDestinationMask()
|
int |
getIncomingIf()
|
int |
getIncomingIfMask()
|
long |
getMaskedDestination()
|
int |
getMaskedIncomingIf()
|
long |
getMaskedSource()
|
long |
getSource()
|
long |
getSourceMask()
|
int |
hashCode()
|
java.lang.String |
print(Address addr_)
|
void |
set(long src_,
long dest_,
int incoming_)
Set this RTKey with the given source, destination and incoming interface. |
void |
set(long src_,
long srcmask_,
long dest_,
long destmask_,
int incoming_,
int incomingmask_)
Set this RTKey with the given source, destination, incoming interface and masks. |
void |
setDestination(long g_)
|
void |
setDestinationMask(long m_)
|
void |
setIncomingIf(int i_)
|
void |
setIncomingIfMask(int m_)
|
void |
setSource(long s_)
|
void |
setSourceMask(long m_)
|
java.lang.String |
toString()
Prints out the value and the mask of this map key by the set of indices of the bits of 1's in the value and the mask. |
| Methods inherited from class drcl.data.MapKey |
binaryRepresentation, binaryRepresentation, binaryRepresentation, duplicate, equals, exactMatch, getMask, getValue, hexRepresentation, hexRepresentation, hexRepresentation, match, numberRepresentation, set, setMask, setValue, wildcardMatch |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RTKey(long src_,
long dest_,
int incoming_)
RTKey given source, destination and incoming interface.
If source/destination can be ignored, Address.any()
or Address.dontcare() is specified. If incoming interface
can be ignored, use negative indices. The corresponding masks are
set to be all 1's if the arguments are not equal to the above special
values, otherwise the masks are set to be 0.
src_ - source.dest_ - destination.incoming_ - index of incoming interface.
public RTKey(long src_,
long srcmask_,
long dest_,
long destmask_,
int incoming_,
int incomingmask_)
RTKey given source, destination, incoming interface and masks.
If source/destination can be ignored, Address.any()
or Address.dontcare() is specified. If incoming interface
can be ignored, use negative indices. The corresponding masks are
set to be the argument masks if the arguments are not equal to the above special
values, otherwise the masks are set to be 0.
src_ - source.srcmask_ - source mask.dest_ - destination.destmask_ - destination mask.incoming_ - index of incoming interface.incomingmask_ - mask for the incoming interface index.public RTKey()
| Method Detail |
public long getSource()
public void setSource(long s_)
public long getDestination()
public void setDestination(long g_)
public int getIncomingIf()
public void setIncomingIf(int i_)
public long getSourceMask()
public void setSourceMask(long m_)
public long getMaskedSource()
public long getDestinationMask()
public void setDestinationMask(long m_)
public long getMaskedDestination()
public int getIncomingIfMask()
public void setIncomingIfMask(int m_)
public int getMaskedIncomingIf()
public void set(long src_,
long dest_,
int incoming_)
RTKey with the given source, destination and incoming interface.
The corresponding masks are set to be all 1's.
src_ - source.dest_ - destination.incoming_ - index of incoming interface.
public void set(long src_,
long srcmask_,
long dest_,
long destmask_,
int incoming_,
int incomingmask_)
RTKey with the given source, destination, incoming interface and masks.
src_ - source.srcmask_ - source mask.dest_ - destination.destmask_ - destination mask.incoming_ - index of incoming interface.incomingmask_ - mask for the incoming interface index.public int hashCode()
hashCode in class MapKeypublic java.lang.String toString()
MapKey
toString in class MapKeyBitSet.toString().public java.lang.String print(Address addr_)
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||