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

CompoundCondition.append_condition()   A

Complexity

Conditions 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 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