public class SwitchPort
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SwitchPort.ErrorStatus |
Modifier and Type | Field and Description |
---|---|
(package private) SwitchPort.ErrorStatus |
errorStatus |
protected int |
port |
protected long |
switchDPID |
Constructor and Description |
---|
SwitchPort(long switchDPID,
int port)
Simple constructor
|
SwitchPort(long switchDPID,
int port,
SwitchPort.ErrorStatus errorStatus)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
SwitchPort.ErrorStatus |
getErrorStatus()
Returns the errorStatus.
|
int |
getPort()
Returns the switch port.
|
long |
getSwitchDPID()
Returns the dpid.
|
int |
hashCode() |
java.lang.String |
toString() |
protected long switchDPID
protected int port
SwitchPort.ErrorStatus errorStatus
public SwitchPort(long switchDPID, int port, SwitchPort.ErrorStatus errorStatus)
switchDPID
- the dpidport
- the porterrorStatus
- any error status for the switch portpublic SwitchPort(long switchDPID, int port)
switchDPID
- the dpidport
- the portpublic long getSwitchDPID()
public int getPort()
public SwitchPort.ErrorStatus getErrorStatus()
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