T1
- The Generic Switch typeT2
- The Generic Link typepublic class Port<T1 extends Switch,T2 extends Link> extends OFPhysicalPort implements Persistable
OFPhysicalPort.OFPortConfig, OFPhysicalPort.OFPortFeatures, OFPhysicalPort.OFPortState
Modifier and Type | Field and Description |
---|---|
static String |
DB_KEY
Database keyword for ports.
|
protected Boolean |
isEdge |
protected MACAddress |
mac |
protected T1 |
parentSwitch |
protected LinkPair<T2> |
portLink |
advertisedFeatures, config, currentFeatures, hardwareAddress, MINIMUM_LENGTH, name, OFP_ETH_ALEN, peerFeatures, portNumber, state, supportedFeatures
Modifier | Constructor and Description |
---|---|
protected |
Port(OFPhysicalPort ofPort)
Instantiates a new port.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getCurrentThroughput() |
Map<String,Object> |
getDBIndex() |
String |
getDBKey() |
String |
getDBName() |
Map<String,Object> |
getDBObject() |
LinkPair<T2> |
getLink() |
T1 |
getParentSwitch() |
int |
hashCode() |
Boolean |
isEdge()
Gets the checks if is edge.
|
void |
setEdge(Boolean isEdge)
Sets the checks if is edge.
|
void |
setHardwareAddress(byte[] hardwareAddress) |
void |
setInLink(T2 link)
Set the link connected to this port.
|
void |
setOutLink(T2 link)
Set the link connected to this port.
|
DPIDandPort |
toDPIDandPort() |
String |
toString() |
getAdvertisedFeatures, getConfig, getCurrentFeatures, getHardwareAddress, getName, getPeerFeatures, getPortNumber, getState, getSupportedFeatures, readFrom, setAdvertisedFeatures, setConfig, setCurrentFeatures, setName, setPeerFeatures, setPortNumber, setState, setSupportedFeatures, writeTo
public static final String DB_KEY
protected MACAddress mac
protected Boolean isEdge
protected Port(OFPhysicalPort ofPort)
ofPort
- the OpenFlow physical portpublic void setHardwareAddress(byte[] hardwareAddress)
setHardwareAddress
in class OFPhysicalPort
hardwareAddress
- the hardwareAddress to setpublic Boolean isEdge()
public void setEdge(Boolean isEdge)
isEdge
- the new checks if is edgepublic T1 getParentSwitch()
public void setInLink(T2 link)
link
- public void setOutLink(T2 link)
link
- public Integer getCurrentThroughput()
public int hashCode()
hashCode
in class OFPhysicalPort
public boolean equals(Object obj)
equals
in class OFPhysicalPort
public Map<String,Object> getDBIndex()
getDBIndex
in interface Persistable
public String getDBKey()
getDBKey
in interface Persistable
public String getDBName()
getDBName
in interface Persistable
public Map<String,Object> getDBObject()
getDBObject
in interface Persistable
public DPIDandPort toDPIDandPort()
Copyright © 2015. All rights reserved.