public class DefaultNodeLink extends DefaultLink implements NodeLink
Constructor and Description |
---|
DefaultNodeLink(Node node)
Creates a new node link using the supplied node information
|
DefaultNodeLink(NodeId nodeId,
InterfaceId interfaceId,
NodeLocation location,
boolean direction)
Creates a new node link from Node to DPID when direction is true
Creates a new node link from DPID to Node when direction is false
using the supplied node information.
|
Modifier and Type | Method and Description |
---|---|
ConnectionPoint |
connectionPoint()
Returns the node attachment point to the network.
|
boolean |
equals(Object o) |
int |
hashCode() |
NodeId |
nodeId()
Returns the identifier of the node.
|
String |
toString() |
dst, info, src, supplierId, type, updateInfo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
supplierId
public DefaultNodeLink(NodeId nodeId, InterfaceId interfaceId, NodeLocation location, boolean direction)
nodeId
- id of the nodeinterfaceId
- node interface idlocation
- node locationdirection
- true for link from Node to DPID and false for link from DPID to Nodepublic DefaultNodeLink(Node node)
node
- node from which to create a node linkpublic NodeId nodeId()
NodeLink
public ConnectionPoint connectionPoint()
NodeLink
connectionPoint
in interface NodeLink
public boolean equals(Object o)
equals
in class DefaultLink
public int hashCode()
hashCode
in class DefaultLink
public String toString()
toString
in class DefaultLink
Copyright © 2015. All Rights Reserved.