MovementMoleculeGland   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_molecule() 0 8 1
1
from intelligine.cst import MOLECULES_DIRECTION
2
from intelligine.simulation.object.molecule.MoleculeGland import MoleculeGland
3
from intelligine.simulation.molecule.Molecule import Molecule
4
5
6
class MovementMoleculeGland(MoleculeGland):
7
8
    def get_molecule(self):
9
        """
10
        :return: Molecule
11
        """
12
        return Molecule(MOLECULES_DIRECTION,
13
                        self._molecule_type,
14
                        self._host.get_brain().get_distance_from_objective(),
15
                        1)
16