3
À<×e¯ ã @ s d dl jZG dd„ deƒZdS )é Nc @ sä e Zd ZdZdd„ Zedd„ ƒZedd„ ƒZedd „ ƒZej d
d „ ƒZedd„ ƒZ
ed
d„ ƒZedd„ ƒZedd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZdd„ Zdd „ Zd!d"„ Zejfd#d$„Zd%d&„ Zd'S )(ÚInstancez
c C sP || _ || _|| _|| _|| _|| _|| _d| _d| _d| _ t
ƒ | _t
ƒ | _d S )NTF)
Ú_pluginÚ_nameÚ_devices_expressionÚ_devices_udev_regexÚ_script_preÚ_script_postÚ_optionsÚ_activeÚ_has_static_tuningÚ_has_dynamic_tuningÚsetÚ_assigned_devicesÚ_processed_devices)ÚselfÚpluginÚnameÚdevices_expressionÚdevices_udev_regexÚ
script_preÚscript_postÚoptions© r ú/usr/lib/python3.6/instance.pyÚ__init__ s zInstance.__init__c C s | j S )N)r )r r r r r s zInstance.pluginc C s | j S )N)r )r r r r r s z
Instance.namec C s | j S )z>The instance performs some tuning (otherwise it is suspended).)r
)r r r r Úactive s zInstance.activec C s
|| _ d S )N)r
)r Úvaluer r r r % s c C s | j S )N)r )r r r r r ) s zInstance.devices_expressionc C s | j S )N)r )r r r r Úassigned_devices- s zInstance.assigned_devicesc C s | j S )N)r )r r r r Úprocessed_devices1 s zInstance.processed_devicesc C s | j S )N)r )r r r r r 5 s zInstance.devices_udev_regexc C s | j S )N)r )r r r r r 9 s zInstance.script_prec C s | j S )N)r )r r r r r = s zInstance.script_postc C s | j S )N)r )r r r r r A s zInstance.optionsc C s | j S )N)r )r r r r Úhas_static_tuningE s zInstance.has_static_tuningc C s | j S )N)r )r r r r Úhas_dynamic_tuningI s zInstance.has_dynamic_tuningc C s | j j| ƒ d S )N)r Zinstance_apply_tuning)r r r r Úapply_tuningO s zInstance.apply_tuningc C s | j j| |ƒS )N)r Zinstance_verify_tuning)r Zignore_missingr r r Ú
verify_tuningR s zInstance.verify_tuningc C s | j j| ƒ d S )N)r Zinstance_update_tuning)r r r r Ú
update_tuningU s zInstance.update_tuningc C s | j j| |ƒ d S )N)r Zinstance_unapply_tuning)r Zrollbackr r r Úunapply_tuningX s zInstance.unapply_tuningc C s | j ƒ | jj| ƒ d S )N)r$ r Zdestroy_instance)r r r r Údestroy[ s zInstance.destroyN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r Úpropertyr r r Úsetterr r r r r r r r r r! r" r# ÚconstsZ
ROLLBACK_SOFTr$ r% r r r r r s( r )Ztuned.constsr, Úobjectr r r r r Ú