colrev.process.operation.Operation

class colrev.process.operation.Operation(*, review_manager, operations_type, notify_state_transition_operation=True)[source]

Bases: object

Operations correspond to the work steps in a CoLRev project.

Initialize the instance.

Methods

check_precondition

Check the operation precondition.

conclude

Conclude the operation (stop Docker containers).

decorate

Decorator for operations.

notify

Notify the review_manager about the next operation.

Attributes

type

check_precondition()[source]

Check the operation precondition.

Return type:

None

conclude()[source]

Conclude the operation (stop Docker containers).

Return type:

None

classmethod decorate()[source]

Decorator for operations.

Return type:

Callable

notify(*, state_transition=True)[source]

Notify the review_manager about the next operation.

Return type:

None