- Refactor simulation handling and improve net iteration methods
This commit is contained in:
2025-02-03 18:55:31 +01:00
parent 2acb27a6b9
commit 2d5f43bbc9
9 changed files with 80 additions and 34 deletions

View File

@@ -134,7 +134,7 @@ public class TestSimulation {
var nodes = new HashSet<ServerNode>();
nodes.add(node);
nodes.add(node1);
net.forEachNode(n -> assertTrue(nodes.contains(n)));
net.forEach(n -> assertTrue(nodes.contains(n)));
net.addConnection(0, 1, 1.0);
var conn = net.getChildren(0);