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 java.lang.String
endPointA()
Returns the identifier of end-point A in string form.java.lang.String
endPointB()
Returns the identifier of end-point B in string form.RegionId
regionA()
Returns the identity of the first region.RegionId
regionB()
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:
java.lang.IllegalArgumentException
- if the link ID is not region-region
-
-
Method Detail
-
endPointA
public java.lang.String endPointA()
Description copied from class:UiLink
Returns the identifier of end-point A in string form.
-
endPointB
public java.lang.String endPointB()
Description copied from class:UiLink
Returns 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
-
-