Package org.onosproject.ui.model.topo
Class UiEdgeLink
- java.lang.Object
-
- org.onosproject.ui.model.topo.UiElement
-
- org.onosproject.ui.model.topo.UiLink
-
- org.onosproject.ui.model.topo.UiEdgeLink
-
public class UiEdgeLink extends UiLink
Designates a link between a device and a host; that is, an edge link.
-
-
Constructor Summary
Constructors Constructor Description UiEdgeLink(UiTopology topology, UiLinkId id)Creates a UI link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceIddeviceId()Returns the edge device identifier.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.HostIdhostId()Returns the host identifier.PortNumberportNumber()Returns the edge port number.
-
-
-
Constructor Detail
-
UiEdgeLink
public UiEdgeLink(UiTopology topology, UiLinkId id)
Creates a UI link.- Parameters:
topology- parent topologyid- canonicalized link identifier
-
-
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.
-
hostId
public HostId hostId()
Returns the host identifier.- Returns:
- host identifier
-
deviceId
public DeviceId deviceId()
Returns the edge device identifier.- Returns:
- device identifier
-
portNumber
public PortNumber portNumber()
Returns the edge port number.- Returns:
- edge port number
-
-