mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Network: Add scenario support.
This commit is contained in:
1 parent
4199eb6ac5
commit
48c389a27c
4 files changed
+155
-67
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user