Package org.onosproject.ui.model.topo
Class UiRegionLink
- java.lang.Object
-
- org.onosproject.ui.model.topo.UiElement
-
- org.onosproject.ui.model.topo.UiLink
-
- org.onosproject.ui.model.topo.UiRegionLink
-
public class UiRegionLink extends UiLink
Designates a link between two region nodes.
-
-
Constructor Summary
Constructors Constructor Description UiRegionLink(UiTopology topology, UiLinkId id)Creates a region to region UI link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringendPointA()Returns the identifier of end-point A in string form.StringendPointB()Returns the identifier of end-point B in string form.RegionIdregionA()Returns the identity of the first region.RegionIdregionB()Returns the identity of the second region.
-
-
-
Constructor Detail
-
UiRegionLink
public UiRegionLink(UiTopology topology, UiLinkId id)
Creates a region to region UI link. Note that it is expected that the link identifier is one that has region IDs as source and destination.- Parameters:
topology- parent topologyid- canonicalized link ID- Throws:
IllegalArgumentException- if the link ID is not region-region
-
-
Method Detail
-
endPointA
public String endPointA()
Description copied from class:UiLinkReturns the identifier of end-point A in string form.
-
endPointB
public String endPointB()
Description copied from class:UiLinkReturns the identifier of end-point B in string form.
-
regionA
public RegionId regionA()
Returns the identity of the first region.- Returns:
- first region ID
-
regionB
public RegionId regionB()
Returns the identity of the second region.- Returns:
- second region ID
-
-