public class Link
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
dst |
private short |
dstPort |
private long |
src |
private short |
srcPort |
Constructor and Description |
---|
Link(long srcId,
int srcPort,
long dstId,
int dstPort)
Convenience constructor.
|
Link(long srcId,
short srcPort,
long dstId,
short dstPort)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getDst() |
short |
getDstPort() |
long |
getSrc() |
short |
getSrcPort() |
int |
hashCode() |
java.lang.String |
toKeyString()
Deprecated.
|
java.lang.String |
toString() |
private long src
private short srcPort
private long dst
private short dstPort
public Link(long srcId, short srcPort, long dstId, short dstPort)
srcId
- source switch identifiersrcPort
- source portdstId
- destination switch identifierdstPort
- destination portpublic Link(long srcId, int srcPort, long dstId, int dstPort)
Link(long, short, long, short)
is the type of second and fourth parameter (int)srcId
- srcPort
- dstId
- dstPort
- public long getSrc()
public short getSrcPort()
public long getDst()
public short getDstPort()
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 toString()
toString
in class java.lang.Object
public java.lang.String toKeyString()