Base class for handling inout sources. More...
Public Member Functions | |
def | __init__ (self, inputQueue, inputConfig, decoderConfig) |
Build a new InputSource class. | |
def | start (self) |
Start the input source thread. | |
def | shutdown (self) |
Stop the input source thread. | |
def | addToQueue (self, data) |
Decode and add alarm data to the queue for further processing during boswatch client. | |
def | getDecoderInstance (self, decoderConfig, StdIn) |
Protected Member Functions | |
def | _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.
def boswatch.inputSource.inputBase.InputBase.__init__ | ( | self, | |
inputQueue, | |||
inputConfig, | |||
decoderConfig | |||
) |
Build a new InputSource class.
@param inputQueue: Python queue object to store input data @param inputConfig: ConfigYaml object with the inoutSource config @param decoderConfig: ConfigYaml object with the decoder config
def 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.
def boswatch.inputSource.inputBase.InputBase.shutdown | ( | self | ) |
Stop the input source thread.
def boswatch.inputSource.inputBase.InputBase.addToQueue | ( | self, | |
data | |||
) |
Decode and add alarm data to the queue for further processing during boswatch client.
def boswatch.inputSource.inputBase.InputBase.getDecoderInstance | ( | self, | |
decoderConfig, | |||
StdIn | |||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |