public class UiDeviceLink extends UiLink
Constructor and Description |
---|
UiDeviceLink(UiTopology topology,
UiLinkId id)
Creates a device to device UI link.
|
Modifier and Type | Method and Description |
---|---|
void |
attachBackingLink(Link link)
Attaches the given backing link to this UI link.
|
protected void |
destroy()
Removes all external references, and prepares the instance for
garbage collection.
|
boolean |
detachBackingLink(Link link)
Detaches the given backing link from this UI link, returning true if the
reverse link is still attached, or false otherwise.
|
DeviceId |
deviceA()
Returns the identity of device A.
|
DeviceId |
deviceB()
Returns the identity of device B.
|
String |
endPointA()
Returns the identifier of end-point A in string form.
|
String |
endPointB()
Returns the identifier of end-point B in string form.
|
String |
endPortA()
Returns the port number (as a string) for end-point A, if applicable.
|
String |
endPortB()
Returns the port number (as a string) for end-point B, if applicable.
|
Link |
linkAtoB()
Returns backing link from A to B.
|
Link |
linkBtoA()
Returns backing link from B to A.
|
PortNumber |
portA()
Returns the port number of device A.
|
PortNumber |
portB()
Returns the port number of device B.
|
id, idAsString, toString, type
public UiDeviceLink(UiTopology topology, UiLinkId id)
topology
- parent topologyid
- canonicalized link identifierpublic String endPointA()
UiLink
public String endPointB()
UiLink
public String endPortA()
UiLink
public String endPortB()
UiLink
protected void destroy()
UiElement
public void attachBackingLink(Link link)
link
- backing link to attachIllegalArgumentException
- if the link is not appropriatepublic boolean detachBackingLink(Link link)
link
- the backing link to detachIllegalArgumentException
- if the link is not appropriatepublic DeviceId deviceA()
public PortNumber portA()
public DeviceId deviceB()
public PortNumber portB()
public Link linkAtoB()
public Link linkBtoA()