@classmethod
def getModuleInfo(cls):
    """Get module information. Returns a string."""
    ret = []
    ret.append("Hardware module '%s':" % cls.name)
    ret.append('')
    ret.append('Parameters:')
    for desc in cls.getParamDescs():
        if desc.mandatory:
            defStr = 'mandatory'
        else:
            defStr = 'default: %s' % str(getattr(desc, 'defaultValueStr', None)
                )
        ret.append(' %s = %s (%s)%s' % (desc.name, desc.typeStr.upper(),
            defStr, '  -  ' + desc.description if desc.description else ''))
    return '\n'.join(ret)
