rope.base.taskhandle
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Module Contents
- class rope.base.taskhandle.BaseJobSet
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- class rope.base.taskhandle.BaseTaskHandle
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- abstractmethod current_jobset() BaseJobSet | None
- abstractmethod get_jobsets() Sequence[BaseJobSet]
- create_jobset(name: str = 'JobSet', count: int | None = None) BaseJobSet
- class rope.base.taskhandle.TaskHandle(name='Task', interrupts=True)
Bases:
BaseTaskHandleHelper class that provides a standard way to create an ABC using inheritance.
- name = 'Task'
- interrupts = True
- stopped = False
- job_sets = []
- observers = []
- stop()
Interrupts the refactoring
- current_jobset()
Return the current JobSet
- add_observer(observer)
Register an observer for this task handle
The observer is notified whenever the task is stopped or a job gets finished.
- is_stopped()
- get_jobsets()
- create_jobset(name='JobSet', count=None)
- class rope.base.taskhandle.JobSet(handle, name, count)
Bases:
BaseJobSetHelper class that provides a standard way to create an ABC using inheritance.
- handle
- name
- count
- done = 0
- job_name = None
- started_job(name)
- finished_job()
- check_status()
- get_active_job_name()
- get_percent_done()
- get_name()
- increment()
Increment the number of tasks to complete.
This is used if the number is not known ahead of time.
- class rope.base.taskhandle.NullTaskHandle
Bases:
BaseTaskHandleHelper class that provides a standard way to create an ABC using inheritance.
- is_stopped()
- stop()
- create_jobset(*args, **kwds)
- get_jobsets()
- add_observer(observer)
- class rope.base.taskhandle.NullJobSet
Bases:
BaseJobSetHelper class that provides a standard way to create an ABC using inheritance.
- started_job(name)
- finished_job()
- check_status()
- get_active_job_name()
- get_percent_done()
- get_name()
- increment()
Increment the number of tasks to complete.
This is used if the number is not known ahead of time.
- rope.base.taskhandle.DEFAULT_TASK_HANDLE
- rope.base.taskhandle.DEFAULT_JOB_SET