X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Fstatistics%2FOFPAggregateStatisticsReply.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Fstatistics%2FOFPAggregateStatisticsReply.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=77c45aba7fd51ddc66808f40b13841cd3cf30651;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/statistics/OFPAggregateStatisticsReply.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/statistics/OFPAggregateStatisticsReply.java deleted file mode 100644 index 77c45aba..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/statistics/OFPAggregateStatisticsReply.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.openflow.codec.protocol.statistics; - -import org.openflow.codec.io.IDataBuffer; - -/** - * Represents an ofp_aggregate_stats_reply structure - * - * @author David Erickson (daviderickson@cs.stanford.edu) - */ -public class OFPAggregateStatisticsReply implements OFPStatistics { - protected long packetCount; - protected long byteCount; - protected int flowCount; - - /** - * @return the packetCount - */ - public long getPacketCount() { - return packetCount; - } - - /** - * @param packetCount - * the packetCount to set - */ - public void setPacketCount(long packetCount) { - this.packetCount = packetCount; - } - - /** - * @return the byteCount - */ - public long getByteCount() { - return byteCount; - } - - /** - * @param byteCount - * the byteCount to set - */ - public void setByteCount(long byteCount) { - this.byteCount = byteCount; - } - - /** - * @return the flowCount - */ - public int getFlowCount() { - return flowCount; - } - - /** - * @param flowCount - * the flowCount to set - */ - public void setFlowCount(int flowCount) { - this.flowCount = flowCount; - } - - @Override - public int getLength() { - return 24; - } - - @Override - public void readFrom(IDataBuffer data) { - this.packetCount = data.getLong(); - this.byteCount = data.getLong(); - this.flowCount = data.getInt(); - data.getInt(); // pad - } - - @Override - public void writeTo(IDataBuffer data) { - data.putLong(this.packetCount); - data.putLong(this.byteCount); - data.putInt(this.flowCount); - data.putInt(0); // pad - } - - @Override - public int hashCode() { - final int prime = 397; - int result = 1; - result = prime * result + (int) (byteCount ^ (byteCount >>> 32)); - result = prime * result + flowCount; - result = prime * result + (int) (packetCount ^ (packetCount >>> 32)); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (!(obj instanceof OFPAggregateStatisticsReply)) { - return false; - } - OFPAggregateStatisticsReply other = (OFPAggregateStatisticsReply) obj; - if (byteCount != other.byteCount) { - return false; - } - if (flowCount != other.flowCount) { - return false; - } - if (packetCount != other.packetCount) { - return false; - } - return true; - } -}