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 DeviceId
deviceId()
Returns the edge device identifier.String
endPointA()
Returns the identifier of end-point A in string form.String
endPointB()
Returns the identifier of end-point B in string form.String
endPortB()
Returns the port number (as a string) for end-point B, if applicable.HostId
hostId()
Returns the host identifier.PortNumber
portNumber()
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 String endPointA()
Description copied from class:UiLink
Returns the identifier of end-point A in string form.
-
endPointB
public String endPointB()
Description copied from class:UiLink
Returns the identifier of end-point B in string form.
-
endPortB
public String endPortB()
Description copied from class:UiLink
Returns 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
-
-