Package org.onosproject.net.behaviour
Interface InternalConnectivity
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface InternalConnectivity extends HandlerBehaviour
Handler behaviour for retrieving internal connectivity information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<PortNumber>
getInputPorts(PortNumber outputPort)
Returns the set of input ports that can be connected to outputPort.Set<PortNumber>
getOutputPorts(PortNumber inputPort)
Returns the set of output ports that can be connected to inputPort.boolean
testConnectivity(PortNumber inputPort, PortNumber outputPort)
Test if two ports of the device can be internally connected.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
testConnectivity
boolean testConnectivity(PortNumber inputPort, PortNumber outputPort)
Test if two ports of the device can be internally connected.- Parameters:
inputPort
- in port of deviceoutputPort
- out port of device- Returns:
- true if inputPort can be connected outputPort
-
getOutputPorts
Set<PortNumber> getOutputPorts(PortNumber inputPort)
Returns the set of output ports that can be connected to inputPort.- Parameters:
inputPort
- in port of device- Returns:
- list of output ports that can be connected to inputPort
-
getInputPorts
Set<PortNumber> getInputPorts(PortNumber outputPort)
Returns the set of input ports that can be connected to outputPort.- Parameters:
outputPort
- out port of device- Returns:
- list of input ports that can be connected to outputPort
-
-