from controller.controllable import Controllable


class BioSignal(Controllable):
    """
        Biosignal is a Controllabe object that can update itself with incoming
        signal samples, and process these signals.
    """
    def __init__(self):
        super(Controllable, self).__init__()

        # CONSTANTS-------------------------------------------------------------
        # CSV
        self.COMMA_DELIMITER = ","

    # GETTERS, SETTERS----------------------------------------------------------

    # METHODS-------------------------------------------------------------------
    def update(self, sample):
        self.control()

    def process(self):
        raise NotImplementedError("Subclass must implement abstract method")
from controller.controllable import Controllable


class BioSignal(Controllable):
    """
        Biosignal is a Controllabe object that can update itself with incoming
        signal samples, and process these signals.
    """
    def __init__(self):
        super(Controllable, self).__init__()

        # CONSTANTS-------------------------------------------------------------
        # CSV
        self.COMMA_DELIMITER = ","

    # GETTERS, SETTERS----------------------------------------------------------

    # METHODS-------------------------------------------------------------------
    def update(self, sample):
        return self.control()

    def process(self):
        raise NotImplementedError("Subclass must implement abstract method")
return message from self.control() in update()