Network: Add scenario support.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-09-20 18:35:43 +02:00
1 parent 4199eb6ac5
commit 48c389a27c
4 files changed
+155 -67

No files matched your search

+4 -1
View File
@@ -23,7 +23,7 @@ from Model.Network.Point import Point
class Node(PamhyrID):
def __init__(self, id: int, name: str,
x: float = 0.0, y: float = 0.0,
status=None):
status=None, **kwargs):
super(Node, self).__init__(id)
self._status = status
@@ -55,6 +55,9 @@ class Node(PamhyrID):
self._status.modified()
def is_deleted(self):
return False
@property
def name(self):
return self._name