+ @property
+ def termination_points(self) -> list[ORanTerminationPoint]:
+ result: list[ORanTerminationPoint] = super().termination_points
+ phy_tp: str = "-".join([self.name, "phy".upper()])
+ result.append({"tp-id": phy_tp, "name": phy_tp})
+ for interface in ["a1", "o1", "o2", "e2"]:
+ id:str = "-".join([self.name, interface.upper()])
+ result.append(ORanTerminationPoint({"id": id, "name":id, "supporter": phy_tp, "parent":self}))
+ return result
+
+ def to_topology_nodes(self) -> list[dict[str, dict]]:
+ result: list[dict[str, dict]] = super().to_topology_nodes()
+ for o_ran_cu in self.o_ran_cus:
+ result.extend(o_ran_cu.to_topology_nodes())
+ return result
+
+ def to_topology_links(self) -> list[dict[str, dict]]:
+ result: list[dict[str, dict]] = super().to_topology_links()
+ for o_ran_cu in self.o_ran_cus:
+ result.extend(o_ran_cu.to_topology_links())
+ return result
+
+ def toKml(self) -> ET.Element:
+ ric: ET.Element = ET.Element("Folder")
+ open: ET.Element = ET.SubElement(ric, "open")
+ open.text = "1"
+ name: ET.Element = ET.SubElement(ric, "name")
+ name.text = self.name
+ for o_ran_cu in self.o_ran_cus:
+ ric.append(o_ran_cu.toKml())
+ return ric