blob: 052a6528144a3c15e8d4fa0459c1a685f3ca7aca [file] [log] [blame]
package org.openflow.protocol;
import org.openflow.util.HexString;
public class OFMatchWithSwDpid {
protected OFMatch ofMatch;
protected long switchDataPathId;
public OFMatchWithSwDpid() {
this.ofMatch = new OFMatch();
this.switchDataPathId = 0;
}
public OFMatchWithSwDpid(OFMatch ofm, long swDpid) {
this.ofMatch = ofm.clone();
this.switchDataPathId = swDpid;
}
public OFMatch getOfMatch() {
return ofMatch;
}
public void setOfMatch(OFMatch ofMatch) {
this.ofMatch = ofMatch.clone();
}
public long getSwitchDataPathId() {
return this.switchDataPathId;
}
public OFMatchWithSwDpid setSwitchDataPathId(long dpid) {
this.switchDataPathId = dpid;
return this;
}
@Override
public String toString() {
return "OFMatchWithSwDpid [" + HexString.toHexString(switchDataPathId) + ofMatch + "]";
}
}