ADD N1, N2 N3 interfacing to topology generation 97/7897/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sun, 6 Mar 2022 13:15:47 +0000 (14:15 +0100)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sun, 6 Mar 2022 13:35:03 +0000 (14:35 +0100)
- the width calulation of the O-CU svg rect can ignore one further
  owned-node-edge-point

Issue-Id: OAM-256
Change-Id: I5230fa469f5bd28e3055124adf9be41734e3aba8
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
code/network-topology-instance-generator/model/python/svg/node.py
code/network-topology-instance-generator/model/python/svg/o_cu_cp.py
code/network-topology-instance-generator/model/python/svg/o_cu_up.py

index 11ff3a9..3035419 100644 (file)
@@ -24,7 +24,7 @@ class Node(Svg):
     """
     Class representing an SVG Element object as Connection Node Edge Point
     """
-    
+
     def label(self) -> str:
         """
         Getter for the short label as displayed of the SVG Element
@@ -38,7 +38,7 @@ class Node(Svg):
         Getter for height of the SVG Element
         :return Height in pixel
         """
-        self.__height = 1*ConnectionEdgePoint.width(self) 
+        self.__height = 1*ConnectionEdgePoint.width(self)
         return self.__height
 
     # overwrite
index 6a5c61e..392deb2 100644 (file)
@@ -31,5 +31,5 @@ class OCuCp(Node):
         :return Width in pixel
         """
         self.__width = max(2, len(self.tapi_object().data()[
-                           'owned-node-edge-point'])+1)*ConnectionEdgePoint.width(self)
+                           'owned-node-edge-point'])+0)*ConnectionEdgePoint.width(self)
         return self.__width
index f956638..2a7b29f 100644 (file)
@@ -31,5 +31,5 @@ class OCuUp(Node):
         :return Width in pixel
         """
         self.__width = max(2, len(self.tapi_object().data()[
-                           'owned-node-edge-point'])+1)*ConnectionEdgePoint.width(self)
+                           'owned-node-edge-point'])+0)*ConnectionEdgePoint.width(self)
         return self.__width