+
+ def _create_cells(self) -> list[NrCellDu]:
+ result: list[NrCellDu] = []
+ cell_angle : int = self.parent.parent.parent.parent.parent.parent.configuration()[
+ "pattern"
+ ]["nr-cell-du"]["cell-angle"]
+ for index in range(self._cell_count):
+ s: str = "00" + str(index)
+ name: str = "-".join(
+ [self.name.replace("RU", "NRCellDu"), s[len(s) - 2 : len(s)]]
+ )
+ azimuth: int = index * cell_angle +self._ru_azimuth
+ result.append(
+ NrCellDu(
+ {
+ "name": name,
+ "geoLocation": self.geoLocation,
+ "position": self.position,
+ "layout": self.layout,
+ "spiralRadiusProfile": self.spiralRadiusProfile,
+ "parent": self,
+ "cellAngle": cell_angle,
+ "azimuth": azimuth,
+ }
+ )
+ )
+ return result
+
+ @property
+ def cells(self) -> list[NrCellDu]:
+ return self._cells
+
+ def toKml(self) -> ET.Element:
+ print("ru-tower", self.position, self.parent.position) if self.position.q is not self.parent.position.q else "ok"
+ o_ran_ru: ET.Element = ET.Element("Folder")
+ open: ET.Element = ET.SubElement(o_ran_ru, "open")
+ open.text = "1"
+ name: ET.Element = ET.SubElement(o_ran_ru, "name")
+ name.text = self.name
+ for cell in self.cells:
+ o_ran_ru.append(cell.toKml())
+ return o_ran_ru