public class ConnectPoint extends Object
| Constructor and Description |
|---|
ConnectPoint(ElementId elementId,
PortNumber portNumber)
Creates a new connection point.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceId |
deviceId()
Returns the identifier of the infrastructure device if the connection
point belongs to a network element which is indeed an infrastructure
device.
|
ElementId |
elementId()
Returns the network element identifier.
|
boolean |
equals(Object obj) |
int |
hashCode() |
HostId |
hostId()
Returns the identifier of the infrastructure device if the connection
point belongs to a network element which is indeed an end-station host.
|
PortNumber |
port()
Returns the connection port number.
|
String |
toString() |
public ConnectPoint(ElementId elementId, PortNumber portNumber)
elementId - network element identifierportNumber - port numberpublic ElementId elementId()
public DeviceId deviceId()
IllegalStateException - if connection point is not
associated with a devicepublic HostId hostId()
IllegalStateException - if connection point is not
associated with a hostpublic PortNumber port()
Copyright © 2015. All rights reserved.