from .parameter import Parameter


class Module:
    def __init__(self):
        pass
    
    def parameters(self):
        """Return list of all Parameters in this module"""
        params = []
        for attr_name in dir(self):
            if attr_name.startswith('_'):
                continue
            try:
                attr = getattr(self, attr_name)
                if isinstance(attr, Parameter):
                    params.append(attr)
            except:
                continue
        return params