net.floodlightcontroller.core
Class ImmutablePort.Builder
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImmutablePort.Builder
public ImmutablePort.Builder()
ImmutablePort.Builder
public ImmutablePort.Builder(ImmutablePort p)
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: