0d2f31b524c22f2e1152735eb5db26d8ae210914
[controller.git] / third-party / openflowj_netty / src / main / java / org / openflow / vendor / openflow / OFQueueModifyVendorData.java
1 /**
2 *    Copyright 2012, Andrew Ferguson, Brown University
3 *
4 *    Licensed under the Apache License, Version 2.0 (the "License"); you may
5 *    not use this file except in compliance with the License. You may obtain
6 *    a copy of the License at
7 *
8 *         http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *    Unless required by applicable law or agreed to in writing, software
11 *    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 *    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 *    License for the specific language governing permissions and limitations
14 *    under the License.
15 **/
16
17 package org.openflow.vendor.openflow;
18
19 import org.openflow.protocol.Instantiable;
20 import org.openflow.protocol.vendor.OFVendorData;
21
22 /**
23  * Class that represents the vendor data in the queue modify request
24  *
25  * @author Andrew Ferguson (adf@cs.brown.edu)
26  */
27 public class OFQueueModifyVendorData extends OFQueueVendorData {
28
29     protected static Instantiable<OFVendorData> instantiable =
30             new Instantiable<OFVendorData>() {
31                 public OFVendorData instantiate() {
32                     return new OFQueueModifyVendorData();
33                 }
34             };
35
36     /**
37      * @return a subclass of Instantiable<OFVendorData> that instantiates
38      *         an instance of OFQueueModifyVendorData.
39      */
40     public static Instantiable<OFVendorData> getInstantiable() {
41         return instantiable;
42     }
43
44     /**
45      * The data type value for a queue modify request
46      */
47     public static final int OFP_EXT_QUEUE_MODIFY = 0;
48
49     public OFQueueModifyVendorData() {
50         super(OFP_EXT_QUEUE_MODIFY);
51     }
52 }