public class ConnectPoint extends Object implements 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(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(Object obj)  | 
static ConnectPoint | 
fromString(String string)
Parse a device connect point from a string. 
 | 
int | 
hashCode()  | 
static ConnectPoint | 
hostConnectPoint(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. 
 | 
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 IpElementId ipElementId()
IllegalStateException - if connection point is not
                                         associated with a pcc clientpublic PortNumber port()
public static ConnectPoint deviceConnectPoint(String string)
string - string to parsepublic static ConnectPoint hostConnectPoint(String string)
string - string to parsepublic static ConnectPoint fromString(String string)
string - string to parsepublic int compareTo(ConnectPoint o)
compareTo in interface Comparable<ConnectPoint>