net.floodlightcontroller.devicemanager
Class SwitchPort

java.lang.Object
  extended by net.floodlightcontroller.devicemanager.SwitchPort

public class SwitchPort
extends java.lang.Object

A simple switch DPID/port pair This class is immutable

Author:
readams

Nested Class Summary
static class SwitchPort.ErrorStatus
           
 
Constructor Summary
SwitchPort(long switchDPID, int port)
          Simple constructor
SwitchPort(long switchDPID, int port, SwitchPort.ErrorStatus errorStatus)
          Simple constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 SwitchPort.ErrorStatus getErrorStatus()
           
 int getPort()
           
 long getSwitchDPID()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwitchPort

public SwitchPort(long switchDPID,
                  int port,
                  SwitchPort.ErrorStatus errorStatus)
Simple constructor

Parameters:
switchDPID - the dpid
port - the port
errorStatus - any error status for the switch port

SwitchPort

public SwitchPort(long switchDPID,
                  int port)
Simple constructor

Parameters:
switchDPID - the dpid
port - the port
Method Detail

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