X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=code%2Fnetwork-generator%2Fmodel%2Fpython%2Fo_ran_ru.py;h=0ce0b90e963780b02432c2d5f92411b21a859976;hb=eb61f78711dc62a2c230602ea49f72e9e4a10978;hp=af5492e3fa98adba6e31ab492aabd65a15e2eda2;hpb=e545645de3159d8b15dc2f5f6c5440748e76ec7e;p=oam.git diff --git a/code/network-generator/model/python/o_ran_ru.py b/code/network-generator/model/python/o_ran_ru.py index af5492e..0ce0b90 100644 --- a/code/network-generator/model/python/o_ran_ru.py +++ b/code/network-generator/model/python/o_ran_ru.py @@ -21,19 +21,22 @@ from model.python.o_ran_object import IORanObject from model.python.o_ran_node import ORanNode import xml.etree.ElementTree as ET + # Define the "IORanRu" interface class IORanRu(IORanObject): - def __init__(self, **kwargs): + def __init__(self, cell_count: int, **kwargs): super().__init__(**kwargs) + self._cell_count = cell_count # Define an abstract O-RAN Node class class ORanRu(ORanNode, IORanRu): - def __init__(self, o_ran_smo_data: IORanRu = None, **kwargs): - super().__init__(o_ran_smo_data, **kwargs) + def __init__(self, o_ran_ru_data: IORanRu = None, **kwargs): + super().__init__(o_ran_ru_data, **kwargs) + self._cell_count = o_ran_ru_data["cellCount"] if o_ran_ru_data and "cellCount" in o_ran_ru_data else 1 - def toKml(self): + def toKml(self) -> None: return None - def toSvg(self): + def toSvg(self) -> None: return None