| Modifier and Type | Class and Description |
|---|---|
static class |
UiLinkId.Direction
Designates the directionality of an underlying (uni-directional) link.
|
| Modifier and Type | Method and Description |
|---|---|
ElementId |
elementA()
Returns the identifier of the first element.
|
ElementId |
elementB()
Returns the identifier of the second element.
|
boolean |
equals(Object o) |
int |
hashCode() |
PortNumber |
portA()
Returns the port of the first element.
|
PortNumber |
portB()
Returns the port of the second element.
|
RegionId |
regionA()
Returns the identity of the first region.
|
RegionId |
regionB()
Returns the identity of the second region.
|
String |
toString() |
static UiLinkId |
uiLinkId(Link link)
Generates the canonical link identifier for the given link.
|
static UiLinkId |
uiLinkId(RegionId regionId,
DeviceId deviceId,
PortNumber portNumber)
Generates the canonical link identifier for a link between the specified
region and device/port.
|
static UiLinkId |
uiLinkId(RegionId one,
RegionId two)
Generates the canonical link identifier for a link between the
specified region nodes.
|
public ElementId elementA()
public PortNumber portA()
public ElementId elementB()
public PortNumber portB()
public RegionId regionA()
public RegionId regionB()
public static UiLinkId uiLinkId(Link link)
link - link for which the identifier is requiredNullPointerException - if any of the required fields are nullpublic static UiLinkId uiLinkId(RegionId one, RegionId two)
one - the first region IDtwo - the second region IDNullPointerException - if any of the required fields are nullIllegalArgumentException - if the identifiers are identicalpublic static UiLinkId uiLinkId(RegionId regionId, DeviceId deviceId, PortNumber portNumber)
regionId - region IDdeviceId - device IDportNumber - port numberNullPointerException - if any of the required fields are null