a ”ˆ«híã@s0ddlZddlmZddlZGdd„deƒZdS)éNc@s|eZdZdZgd¢Zdifdd„Zdd„Zdd „Zd d „Ze d d „ƒZ e j dd „ƒZ e dd„ƒZ e dd„ƒZ e dd„ƒZdS)ÚProfilez' Representation of a tuning profile. )Ú_nameÚ_optionsÚ _variablesÚ_unitsNcCs(||_t ¡|_| |¡| |¡dS©N)rÚ collectionsÚ OrderedDictrÚ _init_optionsÚ _init_units©ÚselfÚnameÚconfig©rú:/usr/lib/python3.9/site-packages/tuned/profiles/profile.pyÚ__init__ s  zProfile.__init__cCs$i|_tj|vr t|tjƒ|_dSr)rÚconstsÚPLUGIN_MAIN_UNIT_NAMEÚdict)r rrrrr s zProfile._init_optionscCs<t ¡|_|D](}|tjkr| |||¡}||j|<qdSr)rr rrrÚ _create_unit)r rZ unit_nameZnew_unitrrrr s   zProfile._init_unitscCstjj ||¡Sr)ÚtunedZprofilesZunitZUnitr rrrrszProfile._create_unitcCs|jS)z Profile name. ©r©r rrrr!sz Profile.namecCs ||_dSrr)r Úvaluerrrr(scCs|jSr)rrrrrÚ variables,szProfile.variablescCs|jS)z$ Units included in the profile. )rrrrrÚunits0sz Profile.unitscCs|jS)z Profile global options. )rrrrrÚoptions7szProfile.options)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú __slots__rr r rÚpropertyrÚsetterrrrrrrrrs     r)Ztuned.profiles.unitrZ tuned.constsrrÚobjectrrrrrÚs