WIP: Un seul type de noeud (conditions ou transitions).

This commit is contained in:
Jean Sirmai 2022-01-09 12:47:40 +01:00
parent ae6981a624
commit 648072f59d
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 5 additions and 5 deletions

View File

@ -33,11 +33,11 @@ root = None
for i in range(0, len(model.testmodel.get_conditions().get_all())): for i in range(0, len(model.testmodel.get_conditions().get_all())):
condition = model.testmodel.get_conditions().get_one(i) condition = model.testmodel.get_conditions().get_one(i)
tmp = TreeNode(condition.get_self_id(), tmp = TreeNode(condition.get_self_id(),
condition.get_parent_id(), condition.get_parent_id(),
condition.get_weight(), condition.get_weight(),
condition.get_site(), condition.get_site(),
condition.get_coord("x"), condition.get_coord("x"),
None, None) None, None)
conditions_set.add(tmp) conditions_set.add(tmp)
if tmp.parent_id == 0: if tmp.parent_id == 0:
root = tmp root = tmp