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 SummaryConstructors Constructor Description UiRegionDeviceLink(UiTopology topology, UiLinkId id)Creates a region to device UI link.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceIddevice()Returns the identity of the device.StringendPointA()Returns the identifier of end-point A in string form.StringendPointB()Returns the identifier of end-point B in string form.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- 
UiRegionDeviceLinkpublic 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 topology
- id- canonicalized link identifier
- Throws:
- IllegalArgumentException- if the link ID is not region-region
 
 
- 
 - 
Method Detail- 
endPointApublic String endPointA() Description copied from class:UiLinkReturns the identifier of end-point A in string form.
 - 
endPointBpublic String endPointB() Description copied from class:UiLinkReturns the identifier of end-point B in string form.
 - 
endPortBpublic 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.
 - 
regionpublic RegionId region() Returns the identity of the region.- Returns:
- region ID
 
 - 
devicepublic DeviceId device() Returns the identity of the device.- Returns:
- device ID
 
 - 
portpublic PortNumber port() Returns the identity of the device port.- Returns:
- device port number
 
 
- 
 
-