public class NodePortTuple
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
nodeId |
protected short |
portId |
Constructor and Description |
---|
NodePortTuple(long nodeId,
int portId) |
NodePortTuple(long nodeId,
short portId)
Creates a NodePortTuple
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getNodeId() |
short |
getPortId() |
int |
hashCode() |
void |
setNodeId(long nodeId) |
void |
setPortId(short portId) |
java.lang.String |
toKeyString()
API to return a String value formed with NodeID and PortID
The portID is a 16-bit field, so mask it as an integer to get full
positive value
|
java.lang.String |
toString() |
public NodePortTuple(long nodeId, short portId)
nodeId
- The DPID of the switchportId
- The port of the switchpublic NodePortTuple(long nodeId, int portId)
public long getNodeId()
public void setNodeId(long nodeId)
public short getPortId()
public void setPortId(short portId)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toKeyString()