net.floodlightcontroller.core
Class ImmutablePort.Builder

java.lang.Object
  extended by net.floodlightcontroller.core.ImmutablePort.Builder
Enclosing class:
ImmutablePort

public static class ImmutablePort.Builder
extends java.lang.Object

A builder class to create ImmutablePort instances TODO: add methods to remove elements from the EnumSets


Constructor Summary
ImmutablePort.Builder()
           
ImmutablePort.Builder(ImmutablePort p)
           
 
Method Summary
 ImmutablePort.Builder addAdvertisedFeature(OFPhysicalPort.OFPortFeatures advertisedFeature)
           
 ImmutablePort.Builder addConfig(OFPhysicalPort.OFPortConfig config)
           
 ImmutablePort.Builder addCurrentFeature(OFPhysicalPort.OFPortFeatures currentFeature)
           
 ImmutablePort.Builder addPeerFeature(OFPhysicalPort.OFPortFeatures peerFeature)
           
 ImmutablePort.Builder addSupportedFeature(OFPhysicalPort.OFPortFeatures supportedFeature)
           
 ImmutablePort build()
           
 ImmutablePort.Builder setHardwareAddress(byte[] hardwareAddress)
           
 ImmutablePort.Builder setName(java.lang.String name)
           
 ImmutablePort.Builder setPortNumber(int portNumber)
           
 ImmutablePort.Builder setPortState(OFPhysicalPort.OFPortState portState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutablePort.Builder

public ImmutablePort.Builder()

ImmutablePort.Builder

public ImmutablePort.Builder(ImmutablePort p)
Method Detail

setPortNumber

public ImmutablePort.Builder setPortNumber(int portNumber)
Parameters:
portNumber - the portNumber to set

setHardwareAddress

public ImmutablePort.Builder setHardwareAddress(byte[] hardwareAddress)
Parameters:
hardwareAddress - the hardwareAddress to set

setName

public ImmutablePort.Builder setName(java.lang.String name)
Parameters:
name - the name to set

addConfig

public ImmutablePort.Builder addConfig(OFPhysicalPort.OFPortConfig config)
Parameters:
config - the config to set

setPortState

public ImmutablePort.Builder setPortState(OFPhysicalPort.OFPortState portState)
Parameters:
portState - the portState to set

addCurrentFeature

public ImmutablePort.Builder addCurrentFeature(OFPhysicalPort.OFPortFeatures currentFeature)
Parameters:
currentFeatures - the currentFeatures to set

addAdvertisedFeature

public ImmutablePort.Builder addAdvertisedFeature(OFPhysicalPort.OFPortFeatures advertisedFeature)
Parameters:
advertisedFeatures - the advertisedFeatures to set

addSupportedFeature

public ImmutablePort.Builder addSupportedFeature(OFPhysicalPort.OFPortFeatures supportedFeature)
Parameters:
supportedFeatures - the supportedFeatures to set

addPeerFeature

public ImmutablePort.Builder addPeerFeature(OFPhysicalPort.OFPortFeatures peerFeature)
Parameters:
peerFeatures - the peerFeatures to set

build

public ImmutablePort build()
Returns: