Package org.onosproject.ui.model.topo
Class UiRegionDeviceLink
- java.lang.Object
 - 
- org.onosproject.ui.model.topo.UiElement
 - 
- org.onosproject.ui.model.topo.UiLink
 - 
- org.onosproject.ui.model.topo.UiRegionDeviceLink
 
 
 
 
- 
public class UiRegionDeviceLink extends UiLink
Designates a link between a region node and a device. 
- 
- 
Constructor Summary
Constructors Constructor Description UiRegionDeviceLink(UiTopology topology, UiLinkId id)Creates a region to device UI link. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceIddevice()Returns the identity of the device.java.lang.StringendPointA()Returns the identifier of end-point A in string form.java.lang.StringendPointB()Returns the identifier of end-point B in string form.java.lang.StringendPortB()Returns the port number (as a string) for end-point B, if applicable.PortNumberport()Returns the identity of the device port.RegionIdregion()Returns the identity of the region. 
 - 
 
- 
- 
Constructor Detail
- 
UiRegionDeviceLink
public UiRegionDeviceLink(UiTopology topology, UiLinkId id)
Creates a region to device UI link. Note that it is expected that the link identifier is one that has a region ID at one end, and a device ID at the other- Parameters:
 topology- parent topologyid- canonicalized link identifier- Throws:
 java.lang.IllegalArgumentException- if the link ID is not region-region
 
 - 
 
- 
Method Detail
- 
endPointA
public java.lang.String endPointA()
Description copied from class:UiLinkReturns the identifier of end-point A in string form. 
- 
endPointB
public java.lang.String endPointB()
Description copied from class:UiLinkReturns the identifier of end-point B in string form. 
- 
endPortB
public java.lang.String endPortB()
Description copied from class:UiLinkReturns the port number (as a string) for end-point B, if applicable. This default implementation returns null, indicating not-applicable. Subclasses only need to override this method if end-point B has an associated port. 
- 
region
public RegionId region()
Returns the identity of the region.- Returns:
 - region ID
 
 
- 
device
public DeviceId device()
Returns the identity of the device.- Returns:
 - device ID
 
 
- 
port
public PortNumber port()
Returns the identity of the device port.- Returns:
 - device port number
 
 
 - 
 
 -