blob: bd921e9caeb3aed07129a85d5a8a8fbd759f2ae1 [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.ver10;
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 OFErrorMsgsVer10 implements OFErrorMsgs {
29 public final static OFErrorMsgsVer10 INSTANCE = new OFErrorMsgsVer10();
30
31 private final XidGenerator xidGenerator = XidGenerators.global();
32
33
34
35 public OFBadActionErrorMsg.Builder buildBadActionErrorMsg() {
36 return new OFBadActionErrorMsgVer10.Builder().setXid(nextXid());
37 }
38
39 public OFBadRequestErrorMsg.Builder buildBadRequestErrorMsg() {
40 return new OFBadRequestErrorMsgVer10.Builder().setXid(nextXid());
41 }
42
43 public OFFlowModFailedErrorMsg.Builder buildFlowModFailedErrorMsg() {
44 return new OFFlowModFailedErrorMsgVer10.Builder().setXid(nextXid());
45 }
46
47 public OFHelloFailedErrorMsg.Builder buildHelloFailedErrorMsg() {
48 return new OFHelloFailedErrorMsgVer10.Builder().setXid(nextXid());
49 }
50
51 public OFPortModFailedErrorMsg.Builder buildPortModFailedErrorMsg() {
52 return new OFPortModFailedErrorMsgVer10.Builder().setXid(nextXid());
53 }
54
55 public OFQueueOpFailedErrorMsg.Builder buildQueueOpFailedErrorMsg() {
56 return new OFQueueOpFailedErrorMsgVer10.Builder().setXid(nextXid());
57 }
58
59 public OFBadInstructionErrorMsg.Builder buildBadInstructionErrorMsg() {
60 throw new UnsupportedOperationException("OFBadInstructionErrorMsg not supported in version 1.0");
61 }
62
63 public OFBadMatchErrorMsg.Builder buildBadMatchErrorMsg() {
64 throw new UnsupportedOperationException("OFBadMatchErrorMsg not supported in version 1.0");
65 }
66
67 public OFGroupModFailedErrorMsg.Builder buildGroupModFailedErrorMsg() {
68 throw new UnsupportedOperationException("OFGroupModFailedErrorMsg not supported in version 1.0");
69 }
70
71 public OFSwitchConfigFailedErrorMsg.Builder buildSwitchConfigFailedErrorMsg() {
72 throw new UnsupportedOperationException("OFSwitchConfigFailedErrorMsg not supported in version 1.0");
73 }
74
75 public OFTableModFailedErrorMsg.Builder buildTableModFailedErrorMsg() {
76 throw new UnsupportedOperationException("OFTableModFailedErrorMsg not supported in version 1.0");
77 }
78
79 public OFExperimenterErrorMsg.Builder buildExperimenterErrorMsg() {
80 throw new UnsupportedOperationException("OFExperimenterErrorMsg not supported in version 1.0");
81 }
82
83 public OFRoleRequestFailedErrorMsg.Builder buildRoleRequestFailedErrorMsg() {
84 throw new UnsupportedOperationException("OFRoleRequestFailedErrorMsg not supported in version 1.0");
85 }
86
87 public OFMeterModFailedErrorMsg.Builder buildMeterModFailedErrorMsg() {
88 throw new UnsupportedOperationException("OFMeterModFailedErrorMsg not supported in version 1.0");
89 }
90
91 public OFTableFeaturesFailedErrorMsg.Builder buildTableFeaturesFailedErrorMsg() {
92 throw new UnsupportedOperationException("OFTableFeaturesFailedErrorMsg not supported in version 1.0");
93 }
94
95 public OFMessageReader<OFErrorMsg> getReader() {
96 return OFErrorMsgVer10.READER;
97 }
98
99 public long nextXid() {
100 return xidGenerator.nextXid();
101 }
102
103 public OFVersion getVersion() {
104 return OFVersion.OF_10;
105 }
106}