Your IP : 18.218.1.38
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"