Base class for handling inout sources. More...
Public Member Functions | |
| __init__ (self, inputQueue, inputConfig, decoderConfig) | |
| Build a new InputSource class. | |
| start (self) | |
| Start the input source thread. | |
| shutdown (self) | |
| Stop the input source thread. | |
| addToQueue (self, data) | |
| Decode and add alarm data to the queue for further processing during boswatch client. | |
| getDecoderInstance (self, decoderConfig, StdIn) | |
Protected Member Functions | |
| _runThread (self, dataQueue, sdrConfig, decoderConfig) | |
| Thread routine of the input source has to be inherit. | |
Protected Attributes | |
| _inputThread | |
| _isRunning | |
| _inputQueue | |
| _inputConfig | |
| _decoderConfig | |
Base class for handling inout sources.
| boswatch.inputSource.inputBase.InputBase.__init__ | ( | self, | |
| inputQueue, | |||
| inputConfig, | |||
| decoderConfig | |||
| ) |
Build a new InputSource class.
| inputQueue | Python queue object to store input data |
| inputConfig | ConfigYaml object with the inoutSource config |
| decoderConfig | ConfigYaml object with the decoder config |
| boswatch.inputSource.inputBase.InputBase.start | ( | self | ) |
Start the input source thread.
|
protected |
Thread routine of the input source has to be inherit.
Reimplemented in boswatch.inputSource.lineInInput.LineInInput, boswatch.inputSource.pulseaudioInput.PulseAudioInput, and boswatch.inputSource.sdrInput.SdrInput.
| boswatch.inputSource.inputBase.InputBase.shutdown | ( | self | ) |
Stop the input source thread.
| boswatch.inputSource.inputBase.InputBase.addToQueue | ( | self, | |
| data | |||
| ) |
Decode and add alarm data to the queue for further processing during boswatch client.
| boswatch.inputSource.inputBase.InputBase.getDecoderInstance | ( | self, | |
| decoderConfig, | |||
| StdIn | |||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |