blob: 120b8293c573027ab7c5f9453c79051c6c3f5d7f [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
2// Copyright (c) 2011, 2012 Open Networking Foundation
3// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
4// This library was generated by the LoxiGen Compiler.
5// See the file LICENSE.txt which should have been included in the source distribution
6
7// Automatically generated by LOXI from template of_factory_class.java
8// Do not modify
9
10package org.projectfloodlight.openflow.protocol.ver13;
11
12import org.projectfloodlight.openflow.protocol.*;
13import org.projectfloodlight.openflow.protocol.action.*;
14import org.projectfloodlight.openflow.protocol.actionid.*;
15import org.projectfloodlight.openflow.protocol.bsntlv.*;
16import org.projectfloodlight.openflow.protocol.errormsg.*;
17import org.projectfloodlight.openflow.protocol.meterband.*;
18import org.projectfloodlight.openflow.protocol.instruction.*;
19import org.projectfloodlight.openflow.protocol.instructionid.*;
20import org.projectfloodlight.openflow.protocol.match.*;
21import org.projectfloodlight.openflow.protocol.oxm.*;
22import org.projectfloodlight.openflow.protocol.queueprop.*;
23import org.projectfloodlight.openflow.types.*;
24import org.projectfloodlight.openflow.util.*;
25import org.projectfloodlight.openflow.exceptions.*;
26
27
28public class OFErrorMsgsVer13 implements OFErrorMsgs {
29 public final static OFErrorMsgsVer13 INSTANCE = new OFErrorMsgsVer13();
30
31 private final XidGenerator xidGenerator = XidGenerators.global();
32
33
34
35 public OFBadActionErrorMsg.Builder buildBadActionErrorMsg() {
36 return new OFBadActionErrorMsgVer13.Builder().setXid(nextXid());
37 }
38
39 public OFBadRequestErrorMsg.Builder buildBadRequestErrorMsg() {
40 return new OFBadRequestErrorMsgVer13.Builder().setXid(nextXid());
41 }
42
43 public OFFlowModFailedErrorMsg.Builder buildFlowModFailedErrorMsg() {
44 return new OFFlowModFailedErrorMsgVer13.Builder().setXid(nextXid());
45 }
46
47 public OFHelloFailedErrorMsg.Builder buildHelloFailedErrorMsg() {
48 return new OFHelloFailedErrorMsgVer13.Builder().setXid(nextXid());
49 }
50
51 public OFPortModFailedErrorMsg.Builder buildPortModFailedErrorMsg() {
52 return new OFPortModFailedErrorMsgVer13.Builder().setXid(nextXid());
53 }
54
55 public OFQueueOpFailedErrorMsg.Builder buildQueueOpFailedErrorMsg() {
56 return new OFQueueOpFailedErrorMsgVer13.Builder().setXid(nextXid());
57 }
58
59 public OFBadInstructionErrorMsg.Builder buildBadInstructionErrorMsg() {
60 return new OFBadInstructionErrorMsgVer13.Builder().setXid(nextXid());
61 }
62
63 public OFBadMatchErrorMsg.Builder buildBadMatchErrorMsg() {
64 return new OFBadMatchErrorMsgVer13.Builder().setXid(nextXid());
65 }
66
67 public OFGroupModFailedErrorMsg.Builder buildGroupModFailedErrorMsg() {
68 return new OFGroupModFailedErrorMsgVer13.Builder().setXid(nextXid());
69 }
70
71 public OFSwitchConfigFailedErrorMsg.Builder buildSwitchConfigFailedErrorMsg() {
72 return new OFSwitchConfigFailedErrorMsgVer13.Builder().setXid(nextXid());
73 }
74
75 public OFTableModFailedErrorMsg.Builder buildTableModFailedErrorMsg() {
76 return new OFTableModFailedErrorMsgVer13.Builder().setXid(nextXid());
77 }
78
79 public OFExperimenterErrorMsg.Builder buildExperimenterErrorMsg() {
80 return new OFExperimenterErrorMsgVer13.Builder().setXid(nextXid());
81 }
82
83 public OFRoleRequestFailedErrorMsg.Builder buildRoleRequestFailedErrorMsg() {
84 return new OFRoleRequestFailedErrorMsgVer13.Builder().setXid(nextXid());
85 }
86
87 public OFMeterModFailedErrorMsg.Builder buildMeterModFailedErrorMsg() {
88 return new OFMeterModFailedErrorMsgVer13.Builder().setXid(nextXid());
89 }
90
91 public OFTableFeaturesFailedErrorMsg.Builder buildTableFeaturesFailedErrorMsg() {
92 return new OFTableFeaturesFailedErrorMsgVer13.Builder().setXid(nextXid());
93 }
94
95 public OFMessageReader<OFErrorMsg> getReader() {
96 return OFErrorMsgVer13.READER;
97 }
98
99 public long nextXid() {
100 return xidGenerator.nextXid();
101 }
102
103 public OFVersion getVersion() {
104 return OFVersion.OF_13;
105 }
106}