/snap/core22/2437/usr/share/subiquity/subiquitycore/__pycache__
Edit: /snap/core22/2437/usr/share/subiquity/subiquitycore/__pycache__/controllerset.cpython-310.pyc (1719B)
o
K^ @ s G d d dZ dS )c @ sB e Zd ZdddZdd Zdd Zdd Zed
d Zdd
Z dS )
ControllerSet c C s* || _ |d d | _|| _d| _g | _d S )N)controllers_modcontroller_names init_argsindex instances)selfr namesr r r 3/usr/share/subiquity/subiquitycore/controllerset.py__init__ s
zControllerSet.__init__c C s |d }t | j|S )N
Controller)getattrr )r namecls_namer r r _get_controller_class s z#ControllerSet._get_controller_classc C s | j | | |}t| |r2d}| jD ]}t||r |d7 }q| d}|t| ||}|j}n|| j }t | || t
| j|_| j| d S )N Repeated)
r remover hasattrr
isinstancer r r setattrlencontroller_indexappend)r r klasscinstancerep_clsinstr r r load s
zControllerSet.loadc C s$ | j r| | j d | j sd S d S N )r r r r r r load_all. s zControllerSet.load_allc C s | rd S | j| j S )N)
out_of_boundsr r r# r r r cur2 s zControllerSet.curc C s | j dk p| j t| jkS r! )r r r r# r r r r% 8 s zControllerSet.out_of_boundsN)r )
__name__
__module____qualname__r r r r$ propertyr&