- added some Todo docs
This commit is contained in:
2025-01-23 20:38:21 +01:00
parent 67c5a465a1
commit 4601e76438
2 changed files with 17 additions and 7 deletions

View File

@@ -8,7 +8,10 @@ import java.util.function.Consumer;
import net.berack.upo.valpre.rand.Rng;
/**
* TODO
* A class that represents a network of queues, each with its own servers.
* The network in question is created by adding a node and then establishing
* connections between nodes. In order to start a simulation, at least one node
* must be a Source or must generate at least one event to be processed.
*/
public final class Net {
private final HashMap<String, Integer> indices = new HashMap<>();
@@ -119,6 +122,9 @@ public final class Net {
this.servers.stream().forEach(consumer);
}
/**
* A static inner class used to represent the connection between two nodes
*/
public static class Connection {
public final int index;
public double weight;