net.floodlightcontroller.devicemanager
Class SwitchPort
java.lang.Object
net.floodlightcontroller.devicemanager.SwitchPort
public class SwitchPort
- extends java.lang.Object
A simple switch DPID/port pair
This class is immutable
- Author:
- readams
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SwitchPort
public SwitchPort(long switchDPID,
int port,
SwitchPort.ErrorStatus errorStatus)
- Simple constructor
- Parameters:
switchDPID
- the dpidport
- the porterrorStatus
- any error status for the switch port
SwitchPort
public SwitchPort(long switchDPID,
int port)
- Simple constructor
- Parameters:
switchDPID
- the dpidport
- the port
getSwitchDPID
public long getSwitchDPID()
getPort
public int getPort()
getErrorStatus
public SwitchPort.ErrorStatus getErrorStatus()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object