pystratum_backend.ConstantWorker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A ConstantWorker.execute() 0 6 1
1
from abc import ABC
2
3
4
class ConstantWorker(ABC):
5
    """
6
    Interface for classes that implement the actual execution of the constant command.
7
    """
8
9
    # ------------------------------------------------------------------------------------------------------------------
10
    def execute(self) -> int:
11
        """
12
        Does the actual execution of the constant command for the backend. Returns 0 on success. Otherwise, returns
13
        nonzero.
14
        """
15
        pass
16
17
# ----------------------------------------------------------------------------------------------------------------------
18