IGeoLocation,
)
from network_generation.model.python.o_ran_node import IORanNode, ORanNode
-from network_generation.model.python.o_ran_termination_point import (
- ORanTerminationPoint,
-)
from network_generation.model.python.point import Point
# Define an abstract O-RAN Node class
class NrCellDu(ORanNode):
+
+ _interfaces = ["cell"]
+
def __init__(
self,
data: dict[str, Any] = cast(dict[str, Any], default_value),
def azimuth(self, value: int) -> None:
self._azimuth = value
- def termination_points(self) -> list[ORanTerminationPoint]:
- result: list[ORanTerminationPoint] = super().termination_points()
- result.append(ORanTerminationPoint({
- "name": self.name,
- "type": "o-ran-sc-network:cell"
- }))
- return result
-
def to_topology_nodes(self) -> list[dict[str, Any]]:
# a cell is not a node it is a Termination Point
result: list[dict[str, Any]] = [] # super().to_topology_nodes()