BrainPart   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
dl 0
loc 15
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 4 1
A get_host() 0 2 1
A get_host_brain() 0 2 1
A done() 0 2 1
1
class BrainPart():
2
3
    def __init__(self, host_brain):
4
        self._host_brain = host_brain
5
        self._context = self._host_brain.get_context()
6
        self._host = self._host_brain.get_host()
7
8
    def get_host_brain(self):
9
        return self._host_brain
10
11
    def get_host(self):
12
        return self.get_host_brain().get_host()
13
14
    def done(self):
15
        pass