@Beta
public interface OpticalDevice
extends org.onosproject.net.Device, org.onosproject.net.driver.Behaviour
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.Port |
port(org.onosproject.net.Port port)
Returns most specific projection of the
port or the port
itself. |
<T extends org.onosproject.net.Port> |
portAs(org.onosproject.net.Port port,
java.lang.Class<T> portClass)
Returns the specified projection of the
port if such projection
is supported. |
<T extends org.onosproject.net.Port> |
portIs(org.onosproject.net.Port port,
java.lang.Class<T> portClass)
Returns true if
port is capable of being projected as the
specified class. |
<T extends org.onosproject.net.Port> boolean portIs(org.onosproject.net.Port port,
java.lang.Class<T> portClass)
port is capable of being projected as the
specified class.T - type of Portport - Port instance to testportClass - requested projection class<T extends org.onosproject.net.Port> java.util.Optional<T> portAs(org.onosproject.net.Port port,
java.lang.Class<T> portClass)
port if such projection
is supported.T - type of Portport - Port instance to projectportClass - requested projection classorg.onosproject.net.Port port(org.onosproject.net.Port port)
port or the port
itself.port - Port instanceport itself