public final class DefaultVirtualPort extends DefaultPort implements VirtualPort
DEFAULT_SPEED| Constructor and Description |
|---|
DefaultVirtualPort(NetworkId networkId,
Device device,
PortNumber portNumber,
boolean isEnabled,
ConnectPoint realizedBy)
Creates a virtual port.
|
DefaultVirtualPort(NetworkId networkId,
Device device,
PortNumber portNumber,
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.
|
ConnectPoint |
realizedBy()
Returns the underlying port using which this port is realized.
|
java.lang.String |
toString() |
element, isEnabled, number, portSpeed, typeannotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitelement, isEnabled, number, portSpeed, typeannotationspublic DefaultVirtualPort(NetworkId networkId, Device device, PortNumber portNumber, ConnectPoint realizedBy)
networkId - network identifierdevice - parent network elementportNumber - port numberrealizedBy - underling port which realizes this virtual portpublic DefaultVirtualPort(NetworkId networkId, Device device, PortNumber portNumber, boolean isEnabled, 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 ConnectPoint realizedBy()
VirtualPortrealizedBy in interface VirtualPortpublic int hashCode()
hashCode in class DefaultPortpublic boolean equals(java.lang.Object obj)
equals in class DefaultPortpublic java.lang.String toString()
toString in class DefaultPort