+ @property
+ def oRanDu(self) -> ORanDu:
+ return self._oRanDu
+
+ @property
+ def termination_points(self) -> list[ORanTerminationPoint]:
+ result: list[ORanTerminationPoint] = super().termination_points
+ phy_tp: str = "-".join([self.name, "phy".upper()])
+ result.append(ORanTerminationPoint({"id": phy_tp, "name": phy_tp}))
+ for interface in ["ofhm", "ofhc", "ofhu", "ofhs"]:
+ id: str = "-".join([self.name, interface.upper()])
+ result.append(
+ ORanTerminationPoint(
+ {"id": id, "name": id, "supporter": phy_tp, "parent": self}
+ )
+ )
+ for cell in self.cells:
+ result.extend(cell.termination_points)
+ return result
+
+ def to_topology_nodes(self) -> list[dict[str, dict]]:
+ result: list[dict[str, dict]] = super().to_topology_nodes()
+ result.extend(self.oRanDu.to_topology_nodes())
+ return result
+
+ def to_topology_links(self) -> list[dict[str, dict]]:
+ result: list[dict[str, dict]] = super().to_topology_links()
+ result.extend(self.oRanDu.to_topology_links())
+ for interface in ["phy", "ofhm", "ofhc", "ofhu", "ofhs"]:
+ link_id: str = "".join([interface, ":", self.name, "<->", self.oRanDu.name])
+ source_tp: str = "-".join([self.name, interface.upper()])
+ dest_tp: str = "-".join([self.oRanDu.name, interface.upper()])
+ result.append(
+ {
+ "link-id": link_id,
+ "source": {"source-node": self.name, "source-tp": source_tp},
+ "destination": {"dest-node": self.oRanDu.name, "dest-tp": dest_tp},
+ }
+ )
+ return result
+