net.floodlightcontroller.core.internal
Class OFSwitchImpl

java.lang.Object
  extended by net.floodlightcontroller.core.OFSwitchBase
      extended by net.floodlightcontroller.core.internal.OFSwitchImpl
All Implemented Interfaces:
IOFSwitch

public class OFSwitchImpl
extends OFSwitchBase

This is the internal representation of an openflow switch.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.floodlightcontroller.core.OFSwitchBase
OFSwitchBase.PortManager
 
Nested classes/interfaces inherited from interface net.floodlightcontroller.core.IOFSwitch
IOFSwitch.OFPortType, IOFSwitch.PortChangeEvent, IOFSwitch.PortChangeType
 
Field Summary
 
Fields inherited from class net.floodlightcontroller.core.OFSwitchBase
accessFlowPriority, actions, attributes, buffers, capabilities, channel, connectedSince, coreFlowPriority, datapathId, debugCounters, description, floodlightProvider, local_msg_buffer, log, OFSWITCH_APP_ID, packetInThrottleEnabled, stringId, tables, threadPool
 
Fields inherited from interface net.floodlightcontroller.core.IOFSwitch
PROP_REQUIRES_L3_MATCH, PROP_SUPPORTS_NETMASK_TBL, PROP_SUPPORTS_OFPP_FLOOD, PROP_SUPPORTS_OFPP_TABLE, SWITCH_DESCRIPTION_FUTURE, SWITCH_IS_CORE_SWITCH, SWITCH_SUPPORTS_NX_ROLE
 
Constructor Summary
OFSwitchImpl()
           
 
Method Summary
 IOFSwitch.OFPortType getPortType(int port_num)
          Return the type of OFPort
 boolean isFastPort(int port_num)
          Can the port be turned on without forming a new loop?
 void setSwitchProperties(OFDescriptionStatistics description)
          Set the SwitchProperties based on it's description
 
Methods inherited from class net.floodlightcontroller.core.OFSwitchBase
attributeEquals, cancelAllStatisticsReplies, cancelFeaturesReply, cancelStatisticsReply, clearAllFlowMods, comparePorts, deliverOFFeaturesReply, deliverStatisticsReply, disconnectOutputStream, enableWriteThrottle, flush_all, flush, getAccessFlowPriority, getActions, getAttribute, getAttributes, getBuffers, getCapabilities, getConnectedSince, getCoreFlowPriority, getDescriptionStatistics, getEnabledPortNumbers, getEnabledPorts, getHARole, getId, getInetAddress, getNextTransactionId, getPort, getPort, getPortBroadcastHits, getPorts, getStringId, getTables, hasAttribute, inputThrottled, isActive, isConnected, isDriverHandshakeComplete, isOverloaded, isWriteThrottleEnabled, portEnabled, portEnabled, processDriverHandshakeMessage, processOFPortStatus, queryStatistics, querySwitchFeaturesReply, removeAttribute, sendStatsQuery, setAccessFlowPriority, setAttribute, setChannel, setConnected, setCoreFlowPriority, setDebugCounterService, setFeaturesReply, setFloodlightProvider, setFloodlightProvider, setHARole, setInputThrottleThresholds, setPortDescriptions, setPorts, setTableFull, setThreadPoolService, startDriverHandshake, toString, updateBroadcastCache, write, write, write, writeThrottled, writeThrottled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OFSwitchImpl

public OFSwitchImpl()
Method Detail

setSwitchProperties

public void setSwitchProperties(OFDescriptionStatistics description)
Description copied from interface: IOFSwitch
Set the SwitchProperties based on it's description


getPortType

public IOFSwitch.OFPortType getPortType(int port_num)
Description copied from interface: IOFSwitch
Return the type of OFPort

Returns:

isFastPort

public boolean isFastPort(int port_num)
Description copied from interface: IOFSwitch
Can the port be turned on without forming a new loop?

Returns: