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.ver13; |
| 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 | import java.util.List; |
| 27 | |
| 28 | |
| 29 | public class OFInstructionsVer13 implements OFInstructions { |
| 30 | public final static OFInstructionsVer13 INSTANCE = new OFInstructionsVer13(); |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | public OFInstructionApplyActions.Builder buildApplyActions() { |
| 36 | return new OFInstructionApplyActionsVer13.Builder(); |
| 37 | } |
| 38 | public OFInstructionApplyActions applyActions(List<OFAction> actions) { |
| 39 | return new OFInstructionApplyActionsVer13( |
| 40 | actions |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | public OFInstructionClearActions clearActions() { |
| 45 | return OFInstructionClearActionsVer13.INSTANCE; |
| 46 | } |
| 47 | |
| 48 | public OFInstructionGotoTable.Builder buildGotoTable() { |
| 49 | return new OFInstructionGotoTableVer13.Builder(); |
| 50 | } |
| 51 | public OFInstructionGotoTable gotoTable(TableId tableId) { |
| 52 | return new OFInstructionGotoTableVer13( |
| 53 | tableId |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | public OFInstructionWriteActions.Builder buildWriteActions() { |
| 58 | return new OFInstructionWriteActionsVer13.Builder(); |
| 59 | } |
| 60 | public OFInstructionWriteActions writeActions(List<OFAction> actions) { |
| 61 | return new OFInstructionWriteActionsVer13( |
| 62 | actions |
| 63 | ); |
| 64 | } |
| 65 | |
| 66 | public OFInstructionWriteMetadata.Builder buildWriteMetadata() { |
| 67 | return new OFInstructionWriteMetadataVer13.Builder(); |
| 68 | } |
| 69 | public OFInstructionWriteMetadata writeMetadata(U64 metadata, U64 metadataMask) { |
| 70 | return new OFInstructionWriteMetadataVer13( |
| 71 | metadata, |
| 72 | metadataMask |
| 73 | ); |
| 74 | } |
| 75 | |
| 76 | public OFInstructionBsnArpOffload bsnArpOffload() { |
| 77 | return OFInstructionBsnArpOffloadVer13.INSTANCE; |
| 78 | } |
| 79 | |
| 80 | public OFInstructionBsnDeny bsnDeny() { |
| 81 | return OFInstructionBsnDenyVer13.INSTANCE; |
| 82 | } |
| 83 | |
| 84 | public OFInstructionBsnDhcpOffload bsnDhcpOffload() { |
| 85 | return OFInstructionBsnDhcpOffloadVer13.INSTANCE; |
| 86 | } |
| 87 | |
| 88 | public OFInstructionBsnDisableSplitHorizonCheck bsnDisableSplitHorizonCheck() { |
| 89 | return OFInstructionBsnDisableSplitHorizonCheckVer13.INSTANCE; |
| 90 | } |
| 91 | |
| 92 | public OFInstructionBsnDisableSrcMacCheck bsnDisableSrcMacCheck() { |
| 93 | return OFInstructionBsnDisableSrcMacCheckVer13.INSTANCE; |
| 94 | } |
| 95 | |
| 96 | public OFInstructionBsnDisableVlanCounters bsnDisableVlanCounters() { |
| 97 | return OFInstructionBsnDisableVlanCountersVer13.INSTANCE; |
| 98 | } |
| 99 | |
| 100 | public OFInstructionBsnPacketOfDeath bsnPacketOfDeath() { |
| 101 | return OFInstructionBsnPacketOfDeathVer13.INSTANCE; |
| 102 | } |
| 103 | |
| 104 | public OFInstructionBsnPermit bsnPermit() { |
| 105 | return OFInstructionBsnPermitVer13.INSTANCE; |
| 106 | } |
| 107 | |
| 108 | public OFInstructionBsnPrioritizePdus bsnPrioritizePdus() { |
| 109 | return OFInstructionBsnPrioritizePdusVer13.INSTANCE; |
| 110 | } |
| 111 | |
| 112 | public OFInstructionBsnRequireVlanXlate bsnRequireVlanXlate() { |
| 113 | return OFInstructionBsnRequireVlanXlateVer13.INSTANCE; |
| 114 | } |
| 115 | |
| 116 | public OFInstructionMeter.Builder buildMeter() { |
| 117 | return new OFInstructionMeterVer13.Builder(); |
| 118 | } |
| 119 | public OFInstructionMeter meter(long meterId) { |
| 120 | return new OFInstructionMeterVer13( |
| 121 | meterId |
| 122 | ); |
| 123 | } |
| 124 | |
| 125 | public OFMessageReader<OFInstruction> getReader() { |
| 126 | return OFInstructionVer13.READER; |
| 127 | } |
| 128 | |
| 129 | |
| 130 | public OFVersion getVersion() { |
| 131 | return OFVersion.OF_13; |
| 132 | } |
| 133 | } |