Total Complexity | 2 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | """ |
||
2 | Kerapu |
||
3 | """ |
||
4 | 1 | import abc |
|
5 | |||
6 | 1 | from kerapu.boom.attribuut.Attribuut import Attribuut |
|
7 | 1 | from kerapu.lbz.Subtraject import Subtraject |
|
8 | |||
9 | |||
10 | 1 | class AttribuutGroepKoppeling: |
|
11 | """ |
||
12 | Abstract klasse voor attribuutgroepkoppelingen. |
||
13 | """ |
||
14 | |||
15 | # ------------------------------------------------------------------------------------------------------------------ |
||
16 | 1 | def __init__(self, attribute_groep_id: int, attribuut: Attribuut): |
|
17 | """ |
||
18 | Object constructor. |
||
19 | |||
20 | :param int attribute_groep_id: Het ID van deze koppeling. |
||
21 | :param Attribuut attribuut: Het attribuut van deze koppeling. |
||
22 | """ |
||
23 | 1 | self._attribute_groep_id = attribute_groep_id |
|
24 | """ |
||
25 | Het ID van deze attribuutgroepkoppeling. |
||
26 | |||
27 | :type: int |
||
28 | """ |
||
29 | |||
30 | 1 | self._attribuut = attribuut |
|
31 | 1 | """ |
|
32 | Het attribuut van deze koppeling. |
||
33 | |||
34 | :type: kerapu.boom.attribuut.Attribuut.Attribuut |
||
35 | """ |
||
36 | |||
37 | # ------------------------------------------------------------------------------------------------------------------ |
||
38 | 1 | @abc.abstractmethod |
|
39 | 1 | def test(self, subtraject: Subtraject) -> bool: |
|
40 | """ |
||
41 | Test of een subtraject voldoet aan een attribuutgroepkoppeling. |
||
42 | |||
43 | :param Subtraject subtraject: Het subtraject. |
||
44 | |||
45 | :rtype: bool |
||
46 | """"" |
||
47 | pass |
||
48 | |||
50 |