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, type
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
element, isEnabled, number, portSpeed, type
annotations
public 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 VirtualElement
public ConnectPoint realizedBy()
VirtualPort
realizedBy
in interface VirtualPort
public int hashCode()
hashCode
in class DefaultPort
public boolean equals(java.lang.Object obj)
equals
in class DefaultPort
public java.lang.String toString()
toString
in class DefaultPort