@@ -0,0 +1,2013 @@
+/**%0A *%0A */%0Apackage net.floodlightcontroller.mobilesdn;%0A%0Aimport java.util.List;%0A%0Aimport net.floodlightcontroller.mobilesdn.Master.SwitchNetworkConfig;%0A%0A/**%0A * @author Yanhe Liu %3Cyanhe.liu@cs.helsinki.fi%3E%0A *%0A */%0Apublic class SwitchOutQueue implements Comparable%3CObject%3E %7B%0A    private long swId;%0A    private int outPort;%0A    private long receiveBytes = 0;%0A    private long transmitBytes = 0;%0A    private List%3CAPAgent%3E apList;%0A%0A    public SwitchOutQueue(long id, int port, List%3CAPAgent%3E ap) %7B%0A        swId = id;%0A        outPort = port;%0A        apList = ap;%0A    %7D%0A%0A    public long getSwId() %7B%0A        return swId;%0A    %7D%0A%0A    public int getOutPort() %7B%0A        return outPort;%0A    %7D%0A%0A    public List%3CAPAgent%3E getAPList() %7B%0A        return apList;%0A    %7D%0A%0A    public void setSwId(long id) %7B%0A        swId = id;%0A    %7D%0A%0A    public void setOutPort(int port) %7B%0A        outPort = port;%0A    %7D%0A%0A    public void setAPList(List%3CAPAgent%3E ap) %7B%0A        apList = ap;%0A    %7D%0A%0A    public long getReceiveBytes() %7B%0A        return receiveBytes;%0A    %7D%0A%0A    public long getTransmitBytes() %7B%0A        return transmitBytes;%0A    %7D%0A%0A    public void setReceiveBytes(long bytes) %7B%0A        receiveBytes = bytes;%0A    %7D%0A%0A    public void settransmitBytes(long bytes) %7B%0A        transmitBytes = bytes;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (!(obj instanceof SwitchOutQueue))%0A            return false;%0A%0A        if (obj == this)%0A            return true;%0A%0A        SwitchOutQueue that = (SwitchOutQueue) obj;%0A%0A        return (this.swId == that.getSwId() && this.outPort == that.getOutPort());%0A    %7D%0A%0A    @Override%0A    public int compareTo(Object arg0) %7B%0A        assert (arg0 instanceof SwitchOutQueue);%0A%0A        if (this.swId == ((SwitchOutQueue)arg0).getSwId()) %7B%0A            if (this.outPort == ((SwitchNetworkConfig)arg0).getOutPort()) %7B%0A                return 0;%0A            %7D else if (this.outPort %3E ((SwitchNetworkConfig)arg0).getOutPort()) %7B%0A                return 1;%0A            %7D%0A        %7D%0A%0A        return -1;%0A    %7D%0A%7D%0A

add SwitchOutQueue class