public class NetworkNodeDTO extends Object implements NetworkNode
NetworkNode.| Constructor and Description |
|---|
NetworkNodeDTO(MacAddress mac,
VId vid,
IpAddress ip,
DataPathId dpid,
BigPortNumber port)
Constructs a NetworkNode instance using the specified IP, MAC
VID, DPID and port.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionPoint(ConnectionPoint connectionPoint)
Adds a connection point to the list of connection points where the
host was heard.
|
BigPortNumber |
connectedPort()
Returns the port on which the end host is connected.
|
DataPathId |
connectedSwitchDpid()
Returns the datapath identifier of the switch to which the
end host is connected.
|
List<ConnectionPoint> |
connectionPoints()
Returns a list of
connection points where the
end host was heard. |
boolean |
equals(Object obj) |
int |
hashCode() |
IpAddress |
ip()
Returns the IP address of the end host.
|
MacAddress |
mac()
Returns the MAC address of the end host.
|
String |
toString() |
VId |
vid()
Returns the VID to which the end host belongs.
|
public NetworkNodeDTO(MacAddress mac, VId vid, IpAddress ip, DataPathId dpid, BigPortNumber port)
ip - the IP address of the hostmac - the MAC address of the hostvid - the VID of the hostdpid - the datapath ID of the switch to which the host is connectedport - the port to which the host is connectedpublic IpAddress ip()
NetworkNodeip in interface NetworkNodepublic MacAddress mac()
NetworkNodemac in interface NetworkNodepublic DataPathId connectedSwitchDpid()
NetworkNodeconnectedSwitchDpid in interface NetworkNodepublic BigPortNumber connectedPort()
NetworkNodeconnectedPort in interface NetworkNodepublic VId vid()
NetworkNodevid in interface NetworkNodepublic List<ConnectionPoint> connectionPoints()
NetworkNodeconnection points where the
end host was heard.
Holds the port at which the end host is connected.
connectionPoints in interface NetworkNodepublic void addConnectionPoint(ConnectionPoint connectionPoint)
connectionPoint - the connection point where the host was heardCopyright © 2014. All Rights Reserved.