def METHOD_NAME(self, message):
    waveforms = message.getData()["waveforms"]
    for waveform in waveforms:
        assert isinstance(waveform, DaqWaveform)
        # Check that all the waveforms are the same
        # length with the same oversampling.
        if (self.oversampling == 0):
            self.oversampling = waveform.getOversampling()
            self.waveform_len = waveform.getWaveformLength()
        else:
            assert (self.oversampling == waveform.getOversampling())
            assert (self.waveform_len == waveform.getWaveformLength())
        if waveform.isAnalog():
            self.analog_waveforms.append(waveform)
        else:
            self.digital_waveforms.append(waveform)