Process

Definition of the Process class.

This module defines a process, which is performed when an event is executed.

class sequence.kernel.process.Process(owner: Any, activation_method: str, activation_args: list[Any], activation_kwargs: dict[Any, Any] = {})

Class of process.

The process claims the object of process, the function of object, and the arguments for the function.

owner

the object of process.

Type:

Any

number

the process number.

Type:

int

activation

the function name of object.

Type:

str

activation_args

the (non-keyword) arguments of object’s function.

Type:

list[Any]

activation_kwargs

the keyword arguments of object’s function.

Type:

dict[Any, Any]

run() None

Method to execute process.

Will run the activation_method method of owner with activation_args passed as args, and ‘activation_kwargs’ passed as kwargs.