Completed
Push — master ( 9d90ba...7d87fd )
by P.R.
01:17
created

CompoundCondition   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A append_condition() 0 7 1
A __init__() 0 7 1
1
"""
2
ETLT
3
4
Copyright 2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from etlt.condition.Condition import Condition
9
10
11
class CompoundCondition(Condition):
12
    # ------------------------------------------------------------------------------------------------------------------
13
    def __init__(self):
14
        self._conditions = []
15
        """
16
        The list of conditions of this compound condition.
17
18
        :type list[gdwh.map.Condition.Condition]:
19
        """
20
21
    # ------------------------------------------------------------------------------------------------------------------
22
    def append_condition(self, condition):
23
        """
24
        Appends a child condition to the list of conditions of this compound condition.
25
26
        :param gdwh.map.Condition.Condition condition: The child conditions.
27
        """
28
        self._conditions.append(condition)
29
30
# ----------------------------------------------------------------------------------------------------------------------
31