"""Model classes"""

from julesTk import ThreadSafeObject
from julesTk.utils.observe import Observable

__author__ = "<NAME> <<EMAIL>>"


class Model(Observable, ThreadSafeObject):

    def __init__(self):
        super(Model, self).__init__()
        self._data = None

    @property
    def data(self):
        """RAW Representation of the data contained in the model"""
        with self.lock:
            result = self._data
        return result

    def update(self):
        """Request the model to update it self"""
        raise NotImplementedError

"""Model classes"""

from julesTk import ThreadSafeObject
from julesTk.utils.observe import Observable

__author__ = "<NAME> <<EMAIL>>"


class Model(Observable, ThreadSafeObject):

    def __init__(self):
        super(Model, self).__init__()
        self._data = None

    @property
    def data(self):
        """RAW Representation of the data contained in the model"""
        with self.lock:
            result = self._data
        return result

    def update(self):
        """Request the model to update it self"""
        raise NotImplementedError

Model classes RAW Representation of the data contained in the model Request the model to update it self