- added net test
- added more docs
This commit is contained in:
2025-01-29 10:54:42 +01:00
parent be3d95b86e
commit 2a4b494843
6 changed files with 246 additions and 45 deletions

View File

@@ -153,6 +153,7 @@ public final class Simulation {
* distribution.
*
* @param node The node to create the event for.
* @param state The current state of the node
*/
public void addDepartureIfPossible(ServerNode node, NodeState state) {
var canServe = node.maxServers > state.numServerBusy + state.numServerUnavailable;
@@ -167,10 +168,10 @@ public final class Simulation {
}
/**
* TODO
* Add an AVAILABLE event in the case that the node has an unavailability time.
*
* @param node
* @param state
* @param node The node to create the event for
* @param state The current state of the node
*/
public void addUnavailableIfPossible(ServerNode node, NodeState state) {
var delay = node.getUnavailableTime(rng);