tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | // 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 | |
| 10 | package org.projectfloodlight.openflow.protocol.ver10; |
| 11 | |
| 12 | import org.projectfloodlight.openflow.protocol.*; |
| 13 | import org.projectfloodlight.openflow.protocol.action.*; |
| 14 | import org.projectfloodlight.openflow.protocol.actionid.*; |
| 15 | import org.projectfloodlight.openflow.protocol.bsntlv.*; |
| 16 | import org.projectfloodlight.openflow.protocol.errormsg.*; |
| 17 | import org.projectfloodlight.openflow.protocol.meterband.*; |
| 18 | import org.projectfloodlight.openflow.protocol.instruction.*; |
| 19 | import org.projectfloodlight.openflow.protocol.instructionid.*; |
| 20 | import org.projectfloodlight.openflow.protocol.match.*; |
| 21 | import org.projectfloodlight.openflow.protocol.oxm.*; |
| 22 | import org.projectfloodlight.openflow.protocol.queueprop.*; |
| 23 | import org.projectfloodlight.openflow.types.*; |
| 24 | import org.projectfloodlight.openflow.util.*; |
| 25 | import org.projectfloodlight.openflow.exceptions.*; |
| 26 | |
| 27 | |
| 28 | public 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 | } |