Provide fault injecting receiver behavior.
More...
|
| None | _check (self, str operation) |
Provide fault injecting receiver behavior.
◆ __init__()
| None fault_injecting_receiver.FaultInjectingReceiver.__init__ |
( |
| self, |
|
|
ReceiverControlIf | receiver ) |
Initialize the instance.
- Parameters
-
| self | The current instance. |
| receiver | The receiver value. |
◆ _check()
| None fault_injecting_receiver.FaultInjectingReceiver._check |
( |
| self, |
|
|
str | operation ) |
|
protected |
◆ disconnect()
| None fault_injecting_receiver.FaultInjectingReceiver.disconnect |
( |
| self | ) |
|
Disconnect the component.
- Parameters
-
| self | The current instance. |
◆ fail_once()
| None fault_injecting_receiver.FaultInjectingReceiver.fail_once |
( |
| self, |
|
|
str | operation ) |
Configure the next once operation to fail.
- Parameters
-
| self | The current instance. |
| operation | The operation value. |
◆ get_frequency()
| int fault_injecting_receiver.FaultInjectingReceiver.get_frequency |
( |
| self | ) |
|
Return the frequency.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_mode()
| tuple[str, int] fault_injecting_receiver.FaultInjectingReceiver.get_mode |
( |
| self | ) |
|
Return the mode.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_rds()
| str | None fault_injecting_receiver.FaultInjectingReceiver.get_rds |
( |
| self | ) |
|
Return the rds.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_signal_strength()
| float | None fault_injecting_receiver.FaultInjectingReceiver.get_signal_strength |
( |
| self | ) |
|
Return the signal strength.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_snr()
| float | None fault_injecting_receiver.FaultInjectingReceiver.get_snr |
( |
| self | ) |
|
Return the snr.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ reconnect()
| None fault_injecting_receiver.FaultInjectingReceiver.reconnect |
( |
| self | ) |
|
Reconnect the component.
- Parameters
-
| self | The current instance. |
◆ set_frequency()
| None fault_injecting_receiver.FaultInjectingReceiver.set_frequency |
( |
| self, |
|
|
int | hz ) |
Set the frequency.
- Parameters
-
| self | The current instance. |
| hz | The hz value. |
◆ set_mode()
| None fault_injecting_receiver.FaultInjectingReceiver.set_mode |
( |
| self, |
|
|
str | mode, |
|
|
int | bandwidth ) |
Set the mode.
- Parameters
-
| self | The current instance. |
| mode | The demodulation mode. |
| bandwidth | The channel bandwidth in hertz. |
◆ start()
| None fault_injecting_receiver.FaultInjectingReceiver.start |
( |
| self | ) |
|
Start the component.
- Parameters
-
| self | The current instance. |
◆ stop()
| None fault_injecting_receiver.FaultInjectingReceiver.stop |
( |
| self | ) |
|
Stop the component.
- Parameters
-
| self | The current instance. |
◆ _connected
| bool fault_injecting_receiver.FaultInjectingReceiver._connected = True |
|
protected |
◆ _fail_next
| set[str] fault_injecting_receiver.FaultInjectingReceiver._fail_next = set() |
|
protected |
◆ _lock
| fault_injecting_receiver.FaultInjectingReceiver._lock = RLock() |
|
protected |
◆ _receiver
| fault_injecting_receiver.FaultInjectingReceiver._receiver = receiver |
|
protected |
The documentation for this class was generated from the following file: