alshabib | 86ac11c | 2014-08-14 16:14:41 -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.ver12; |
| 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 OFQueuePropsVer12 implements OFQueueProps { |
| 29 | public final static OFQueuePropsVer12 INSTANCE = new OFQueuePropsVer12(); |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | public OFQueuePropMinRate.Builder buildMinRate() { |
| 35 | return new OFQueuePropMinRateVer12.Builder(); |
| 36 | } |
| 37 | public OFQueuePropMinRate minRate(int rate) { |
| 38 | return new OFQueuePropMinRateVer12( |
| 39 | rate |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | public OFQueuePropMaxRate.Builder buildMaxRate() { |
| 44 | return new OFQueuePropMaxRateVer12.Builder(); |
| 45 | } |
| 46 | public OFQueuePropMaxRate maxRate(int rate) { |
| 47 | return new OFQueuePropMaxRateVer12( |
| 48 | rate |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | public OFMessageReader<OFQueueProp> getReader() { |
| 53 | return OFQueuePropVer12.READER; |
| 54 | } |
| 55 | |
| 56 | |
| 57 | public OFVersion getVersion() { |
| 58 | return OFVersion.OF_12; |
| 59 | } |
| 60 | } |