@Beta public interface PowerConfig<T> extends HandlerBehaviour
Modifier and Type | Method and Description |
---|---|
Optional<Long> |
currentPower(PortNumber port,
T component)
Get the current power on the component.
|
default Optional<com.google.common.collect.Range<Long>> |
getInputPowerRange(PortNumber port,
T component)
Get the expected input power range for the component,
as optical components have different working input power ranges.
|
default List<PortNumber> |
getPorts(T component)
Get the ports, which support
PowerConfig operations for the specified
component . |
Optional<Long> |
getTargetPower(PortNumber port,
T component)
Get the target power on the component.
|
default Optional<com.google.common.collect.Range<Long>> |
getTargetPowerRange(PortNumber port,
T component)
Get the acceptable target power range for setTargetPower,
as optical components have different configurable output power ranges.
|
void |
setTargetPower(PortNumber port,
T component,
long power)
Set the target power on the component.
|
handler, setHandler
Optional<Long> getTargetPower(PortNumber port, T component)
port
- the portcomponent
- the port componentvoid setTargetPower(PortNumber port, T component, long power)
port
- the portcomponent
- the port componentpower
- target power in .01 dBmOptional<Long> currentPower(PortNumber port, T component)
port
- the portcomponent
- the port componentdefault Optional<com.google.common.collect.Range<Long>> getTargetPowerRange(PortNumber port, T component)
port
- the portcomponent
- the port componentdefault Optional<com.google.common.collect.Range<Long>> getInputPowerRange(PortNumber port, T component)
port
- the portcomponent
- the port componentdefault List<PortNumber> getPorts(T component)
PowerConfig
operations for the specified
component
.component
- the port component