Completed
Push — master ( 40c094...b6a1c4 )
by Wojtek
02:30
created

OptimizationStrategy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
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 13
rs 10
ccs 2
cts 3
cp 0.6667
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_group_optimization_strategy() 0 10 1
1
"""Represents optimization strategy for PSO."""
2
3
4 1
class OptimizationStrategy:
0 ignored issues
show
Complexity introduced by
This abstract class seems to be used only once.

Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.

Loading history...
5
    """Represents optimization strategy for PSO."""
6
7 1
    def get_group_optimization_strategy(self, stages_in_group):
8
        """
9
            Return optimization strategy for group.
10
        Args:
11
            stages_in_group (list): stages  in group
12
13
        Raises:
14
            NotImplementedError: when method not implemented.
15
        """
16
        raise NotImplementedError
17