OptimizationStrategy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
ccs 2
cts 3
cp 0.6667
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_group_optimization_strategy() 0 11 1
1
"""Represents optimization strategy for PSO."""
2
3
4 1
class OptimizationStrategy:
5
    """Represents optimization strategy for PSO."""
6
7 1
    def get_group_optimization_strategy(self, stages_in_group, process):
8
        """
9
            Return optimization strategy for group.
10
        Args:
11
            process (AbstractProcess): optimized process
12
            stages_in_group (list): stages  in group
13
14
        Raises:
15
            NotImplementedError: when method not implemented.
16
        """
17
        raise NotImplementedError
18