com.testingtech.ttcn.tri
Class NetDeviceAndMAC
java.lang.Object
com.testingtech.ttcn.tri.NetDeviceAndMAC
- public class NetDeviceAndMAC
- extends java.lang.Object
Class to store net device and MAC address as entry in the send hashmap
- Author:
- dte
Constructor Summary |
NetDeviceAndMAC(java.lang.String netDeviceId,
byte[] mac)
The constructor of the class |
Method Summary |
boolean |
equals(java.lang.Object ndam)
|
byte[] |
getMAC()
|
java.lang.String |
getNetDeviceId()
|
int |
hashCode()
|
void |
setMAC(byte[] mac)
|
void |
setNetDeviceId(java.lang.String netDeviceId)
|
java.lang.String |
toString()
Returns a string in the format "netDeviceId: " + the net device, "MAC address: " and the bytes in hex representation. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NetDeviceAndMAC
public NetDeviceAndMAC(java.lang.String netDeviceId,
byte[] mac)
- The constructor of the class
- Parameters:
netDeviceId
- The net device to storemac
- The MAC address to store
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object ndam)
getNetDeviceId
public java.lang.String getNetDeviceId()
- Returns:
- Returns the f_netDeviceId.
setNetDeviceId
public void setNetDeviceId(java.lang.String netDeviceId)
- Parameters:
netDeviceId
- The f_netDeviceId to set.
getMAC
public byte[] getMAC()
- Returns:
- Returns the f_mac.
setMAC
public void setMAC(byte[] mac)
- Parameters:
mac
- The f_mac to set.
toString
public java.lang.String toString()
- Returns a string in the format "netDeviceId: " + the net device, "MAC address: " and the bytes in hex representation.
Submit a bug or feature
IPv6TestAdapter is a trademark or registered trademark of Testing Technologies IST GmbH in Germany and possibly in other countries.
(c) Copyright 2001-2005 Testing Technologies IST GmbH, Rosenthaler Str. 13, 10119 Berlin, Germany. All Rights Reserved.