public class ConnectPoint extends java.lang.Object implements java.lang.Comparable<ConnectPoint>
Constructor and Description |
---|
ConnectPoint(ElementId elementId,
PortNumber portNumber)
Creates a new connection point.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConnectPoint o) |
static ConnectPoint |
deviceConnectPoint(java.lang.String string)
Parse a device connect point from a string.
|
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(java.lang.Object obj) |
int |
hashCode() |
static ConnectPoint |
hostConnectPoint(java.lang.String string)
Parse a host connect point from a string.
|
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.
|
IpElementId |
ipElementId()
Returns the identifier of the infrastructure device if the connection
point belongs to a network element which is indeed an ip of pcc
client identifier.
|
PortNumber |
port()
Returns the connection port number.
|
java.lang.String |
toString() |
public ConnectPoint(ElementId elementId, PortNumber portNumber)
elementId
- network element identifierportNumber
- port numberpublic ElementId elementId()
public DeviceId deviceId()
java.lang.IllegalStateException
- if connection point is not
associated with a devicepublic HostId hostId()
java.lang.IllegalStateException
- if connection point is not
associated with a hostpublic IpElementId ipElementId()
java.lang.IllegalStateException
- if connection point is not
associated with a pcc clientpublic PortNumber port()
public static ConnectPoint deviceConnectPoint(java.lang.String string)
string
- string to parsepublic static ConnectPoint hostConnectPoint(java.lang.String string)
string
- string to parsepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ConnectPoint o)
compareTo
in interface java.lang.Comparable<ConnectPoint>