Create an init version of a network viewer 14/11914/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sat, 14 Oct 2023 16:16:09 +0000 (18:16 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sat, 14 Oct 2023 16:16:15 +0000 (18:16 +0200)
- rename O-RAN-Function to O-RAN-Object

Issue-ID: OAM-363
Change-Id: I113202688aa07c7c90de43d44a00e0e782c221b2
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/model/python/ORanObject.py [moved from code/network-generator/model/python/ORanFunction.py with 90% similarity]

@@ -15,7 +15,7 @@
 #!/usr/bin/python
 
 """
-An abstract Class for O-RAN Functions
+An abstract Class for O-RAN Objects
 """
 from abc import ABC, abstractmethod
 from typing import Dict
@@ -27,8 +27,8 @@ from model.python.TypeDefinitions import (
 from model.python.GeoLocation import GeoLocation
 
 
-# Define the "IORanFunction" interface
-class IORanFunction(ITop):
+# Define the "IORanObject" interface
+class IORanObject(ITop):
     def __init__(
         self,
         address: AddressType = None,
@@ -42,9 +42,9 @@ class IORanFunction(ITop):
         self.url = url
 
 
-# Define an abstract O-RAN Function class
-class ORanFunction(ABC, Top, IORanFunction):
-    def __init__(self, of: IORanFunction = None, **kwargs):
+# Define an abstract O-RAN Object class
+class ORanObject(Top, IORanObject):
+    def __init__(self, of: IORanObject = None, **kwargs):
         super().__init__(**kwargs)
         self.address = of["address"] if of and "address" in of else None
         self.geoLocation = (