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_interface.java |
| 8 | // Do not modify |
| 9 | |
| 10 | package org.projectfloodlight.openflow.protocol; |
| 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.Set; |
| 27 | import org.jboss.netty.buffer.ChannelBuffer; |
| 28 | |
| 29 | public interface OFPortDesc extends OFObject { |
| 30 | OFPort getPortNo(); |
| 31 | MacAddress getHwAddr(); |
| 32 | String getName(); |
| 33 | Set<OFPortConfig> getConfig(); |
| 34 | Set<OFPortState> getState(); |
| 35 | Set<OFPortFeatures> getCurr(); |
| 36 | Set<OFPortFeatures> getAdvertised(); |
| 37 | Set<OFPortFeatures> getSupported(); |
| 38 | Set<OFPortFeatures> getPeer(); |
| 39 | long getCurrSpeed() throws UnsupportedOperationException; |
| 40 | long getMaxSpeed() throws UnsupportedOperationException; |
| 41 | OFVersion getVersion(); |
| 42 | |
| 43 | void writeTo(ChannelBuffer channelBuffer); |
| 44 | |
| 45 | Builder createBuilder(); |
| 46 | public interface Builder { |
| 47 | OFPortDesc build(); |
| 48 | OFPort getPortNo(); |
| 49 | Builder setPortNo(OFPort portNo); |
| 50 | MacAddress getHwAddr(); |
| 51 | Builder setHwAddr(MacAddress hwAddr); |
| 52 | String getName(); |
| 53 | Builder setName(String name); |
| 54 | Set<OFPortConfig> getConfig(); |
| 55 | Builder setConfig(Set<OFPortConfig> config); |
| 56 | Set<OFPortState> getState(); |
| 57 | Builder setState(Set<OFPortState> state); |
| 58 | Set<OFPortFeatures> getCurr(); |
| 59 | Builder setCurr(Set<OFPortFeatures> curr); |
| 60 | Set<OFPortFeatures> getAdvertised(); |
| 61 | Builder setAdvertised(Set<OFPortFeatures> advertised); |
| 62 | Set<OFPortFeatures> getSupported(); |
| 63 | Builder setSupported(Set<OFPortFeatures> supported); |
| 64 | Set<OFPortFeatures> getPeer(); |
| 65 | Builder setPeer(Set<OFPortFeatures> peer); |
| 66 | long getCurrSpeed() throws UnsupportedOperationException; |
| 67 | Builder setCurrSpeed(long currSpeed) throws UnsupportedOperationException; |
| 68 | long getMaxSpeed() throws UnsupportedOperationException; |
| 69 | Builder setMaxSpeed(long maxSpeed) throws UnsupportedOperationException; |
| 70 | OFVersion getVersion(); |
| 71 | } |
| 72 | } |