CTaskFactory#

class ikomia.dataprocess.pydataprocess.CTaskFactory#

Abstract class defining the core structure of the task factory. The system extensibility for the task library is based on the factory design pattern. Each task must implement a factory class derived from this class. Then the system is able to instantiate dynamically a task object (even user-defined).

Import

from ikomia.dataprocess import CTaskFactory

Methods

__init__(arg1)

create(self)

Pure virtual method to create new task instance with default task parameters.

Attributes

info

Metadata structure associated with the task.

Details

__init__((object)arg1) None#
create((CTaskFactory)self) CWorkflowTask :#

Pure virtual method to create new task instance with default task parameters. Must be implemented.

Returns:

CWorkflowTask based object: task instance

create( (CTaskFactory)arg1) -> None

create( (CTaskFactory)self, (CWorkflowTaskParam)param) -> CWorkflowTask :

Pure virtual method to create new task instance with the given task parameters. Must be implemented.

Args:

param (CWorkflowTaskParam based object): parameters instance for initial values

Returns:

CWorkflowTask based object: task instance

create( (CTaskFactory)arg1, (CWorkflowTaskParam)arg2) -> None

info#

Metadata structure associated with the task. Some fields are mandatory to allow plugin publication. See CTaskInfo for details.