public final class DefaultVirtualPort extends org.onosproject.net.DefaultPort implements VirtualPort
| Constructor and Description |
|---|
DefaultVirtualPort(NetworkId networkId,
org.onosproject.net.Device device,
org.onosproject.net.PortNumber portNumber,
boolean isEnabled,
org.onosproject.net.ConnectPoint realizedBy)
Creates a virtual port.
|
DefaultVirtualPort(NetworkId networkId,
org.onosproject.net.Device device,
org.onosproject.net.PortNumber portNumber,
org.onosproject.net.ConnectPoint realizedBy)
Creates a virtual port.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
NetworkId |
networkId()
Returns network identifier.
|
org.onosproject.net.ConnectPoint |
realizedBy()
Returns the underlying port using which this port is realized.
|
java.lang.String |
toString() |
element, isEnabled, number, portSpeed, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic DefaultVirtualPort(NetworkId networkId, org.onosproject.net.Device device, org.onosproject.net.PortNumber portNumber, org.onosproject.net.ConnectPoint realizedBy)
networkId - network identifierdevice - parent network elementportNumber - port numberrealizedBy - underling port which realizes this virtual portpublic DefaultVirtualPort(NetworkId networkId, org.onosproject.net.Device device, org.onosproject.net.PortNumber portNumber, boolean isEnabled, org.onosproject.net.ConnectPoint realizedBy)
networkId - network identifierdevice - parent network elementportNumber - port numberisEnabled - indicator whether the port is up and activerealizedBy - underling port which realizes this virtual portpublic NetworkId networkId()
networkId in interface VirtualElementpublic org.onosproject.net.ConnectPoint realizedBy()
VirtualPortrealizedBy in interface VirtualPortpublic int hashCode()
hashCode in class org.onosproject.net.DefaultPortpublic boolean equals(java.lang.Object obj)
equals in class org.onosproject.net.DefaultPortpublic java.lang.String toString()
toString in class org.onosproject.net.DefaultPort