GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

kerapu.boom.boom_parameter.DiagnoseCluster   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A DiagnoseCluster.tel() 0 10 1
A DiagnoseCluster.__init__() 0 8 1
1
from kerapu.boom.boom_parameter.BoomParameter import BoomParameter
2
from kerapu.lbz.Subtraject import Subtraject
3
4 1
5 1
class DiagnoseCluster(BoomParameter):
6
    """
7
    Klasse voor boomparameter diagnosecluster.
8 1
9
    Boomparameternummers: 232, 233, 234, 235, 236, 237.
10
    """
11
12
    # ------------------------------------------------------------------------------------------------------------------
13
    def __init__(self, cluster_nummer: int):
14
        """
15
        Object constructor.
16 1
17
        :param int cluster_nummer: Het clusternummer (1..6).
18
        """
19
        self._cluster_nummer: int = cluster_nummer
20
        """
21
        Het clusternummer (1..6).
22 1
        """
23
24
    # ------------------------------------------------------------------------------------------------------------------
25 1
    def tel(self, cluster_code: str, subtraject: Subtraject) -> int:
26
        """
27
        Geeft het aantal malen (d.w.z. 0 of 1) dat een subtraject voldoet aan een diagnoseclustercode.
28
29
        :param str cluster_code: De cluster_code waartegen getest moet worden.
30
        :param Subtraject subtraject: Het subtraject.
31
32
        :rtype: int
33
        """
34 1
        return subtraject.telling_diagnose_cluster(cluster_code, self._cluster_nummer)
35
36
# ----------------------------------------------------------------------------------------------------------------------
37