Commit Graph

95 Commits

Author SHA1 Message Date
f4d3262cb7 Rename run method to runBuilder in InteractiveConsole and update references; refactor file handling in Plot and SimulationBuilder for improved clarity and consistency 2025-03-16 16:59:12 +01:00
60ef40c0ab Add example network files and update interactive console commands for improved usability 2025-03-16 16:32:11 +01:00
6cb87be89b Add example networks and update tests to utilize new NetExamples class 2025-03-16 16:00:51 +01:00
cd3ff3b699 Renamed NetBuilder to InteractiveConsole for interactive net building and update Main to use it 2025-03-16 12:44:27 +01:00
76adc91a43 Refactor input handling in NetBuilderInteractive to improve error management and streamline user prompts 2025-02-19 12:14:53 +01:00
744df75d41 Rename sourceLimited method to terminal and update related logic for improved clarity; adjust spawn behavior to use -1 for infinite arrivals 2025-02-19 11:49:31 +01:00
8fe2f9d781 Remove default values from input prompts in NetBuilderInteractive for improved user input handling 2025-02-19 11:49:06 +01:00
611e14e6fa Refactor SimulationBuilder and SimulationMultiple to accept PrintStream for output; update tests to use null output stream 2025-02-19 11:22:52 +01:00
121d4cd44a Refactor Event comparison logic for clarity and add getRandomChild method to ServerNodeState for improved child selection; update simulation tests for null checks and event processing 2025-02-19 11:06:07 +01:00
c2b9d350aa Add copyOf method to Net class for creating deep copies of nets 2025-02-14 16:01:40 +01:00
1cab669fd9 Remove redundant exception for connecting to source nodes in addConnection method 2025-02-14 15:47:19 +01:00
64e135810a Replace ArrayList with List.copyOf in getFutureEventList method for improved immutability 2025-02-14 15:46:29 +01:00
fbd1fab9fb Enhance NetBuilderInteractive to support interactive node creation and connection management, updating input/output handling and adding unit tests for functionality 2025-02-12 21:26:02 +01:00
e97703e23a Refactor toString method in Net class for improved output formatting and update unit tests accordingly 2025-02-12 21:25:20 +01:00
3a769d6ae3 Implement toString method for ServerNode class and add unit tests for its output 2025-02-12 21:23:43 +01:00
6b3b5fea2f Add toString method for Distribution class and unit tests for various distributions 2025-02-12 21:22:26 +01:00
f0d9c59350 Implement toString method for Net class and add unit tests for its functionality 2025-02-12 17:57:30 +01:00
65e8f378f5 Refactor connection weight calculation to use ArrayList for fixing bug 2025-02-12 17:57:21 +01:00
cb8b2d2913 Merge branch 'main' of https://github.com/Berack96/upo-valpre 2025-02-12 15:21:15 +01:00
2331e42e55 Fixes 2025-02-12 15:20:42 +01:00
d7bf804313 Merge branch 'main' of https://github.com/Berack96/upo-valpre 2025-02-12 15:19:34 +01:00
762a1d1d0a Fix
- loop condition in SimulationMultiple to ensure correct run iterations
2025-02-12 15:18:50 +01:00
f5d70140d7 Fix
- loop condition in SimulationMultiple to ensure correct run iterations
2025-02-12 15:16:26 +01:00
057415e443 Fixes
- formatting in simulation parameter description for 'end' in Main.java
v1.0.0
2025-02-12 14:43:33 +01:00
56db5cacea Fix formatting in simulation parameter description in Main.java 2025-02-12 14:42:51 +01:00
ffdb3021fd Refactor
- simulation result handling to use builder pattern
- result to use only arrays instead of maps
- updated references to other classes
2025-02-12 14:33:32 +01:00
e232df7c5a Updated Csv to Node insertion
- now the csv will show the node in order of addition in the net
2025-02-12 14:32:44 +01:00
Giacomo Bertolazzi
6e22a6fa2d Merge pull request #1 from Berack96/sim-hash-free
Sim hash free
2025-02-11 14:30:15 +01:00
Giacomo Bertolazzi
0d88b66bac Update README.md 2025-02-11 14:24:17 +01:00
7712b4aaa8 Refactor TestSaveExamplesNet to improve structure and add CSV loading tests 2025-02-11 13:34:20 +01:00
651280aba2 Refactor CsvResult to enhance CSV parsing and header extraction 2025-02-11 11:05:55 +01:00
1a2f8dd4c0 Change standard output to error output for usage message in Main class 2025-02-11 10:43:36 +01:00
b6ef68eca1 Update launch configuration to remove 'L' suffix from seed value in VSCode 2025-02-11 09:21:08 +01:00
59ef3cca0e Update default seed value in SimulationBuilder to 0 for random seed if not supported 2025-02-11 09:20:19 +01:00
d537728679 Refactor SimulationBuilder to initialize fields and simplify end criteria parsing 2025-02-11 09:18:31 +01:00
850cee295a Refactor end criteria handling in SimulationBuilder and remove static parse method from EndCriteria 2025-02-11 09:08:50 +01:00
548f967759 Add incremental run support and confidence index handling in simulation 2025-02-11 08:58:27 +01:00
0ac111d94a Refactor
- CsvResult and Result classes for improved iteration and CSV output;
- update SimulationBuilder to include confidence index handling
- rename setRuns to setMaxRuns for clarity
2025-02-10 15:19:40 +01:00
82c237bc16 Fix child node reference in NetBuilderInteractive to ensure correct node names are displayed in the builder output 2025-02-09 22:16:07 +01:00
d7d74e231e Refactor Net and ServerNodeState classes to improve child node handling and simplify simulation initialization 2025-02-09 22:14:23 +01:00
0a5b4ae954 Refactor Net class to streamline connection handling and replace NetChild with Connection class for improved clarity and efficiency 2025-02-09 22:10:10 +01:00
c68cf6ea7e Add simulationDrop test to validate node statistics in Simulation class 2025-02-07 17:52:31 +01:00
606320f526 Enhance Builder pattern in ServerNode by adding reset method and improving documentation for clarity 2025-02-07 17:52:19 +01:00
2edddc98a6 Reorder waitTime declaration in NodeStats class for clarity 2025-02-07 17:38:57 +01:00
fbc9aeac2c Refactor simulation and net example tests to use builder pattern for ServerNode and improve arrival handling logic 2025-02-07 17:33:27 +01:00
5aedd25c5f Refactor Net class by removing unused methods and updating child node retrieval logic in tests 2025-02-07 17:32:54 +01:00
673be95858 Fix typo in spawnArrivalToChild method call in Simulation class 2025-02-06 14:42:41 +01:00
2250b63b38 Increase capacity of limited source nodes in test cases 2025-02-06 14:31:07 +01:00
32072ff764 Add maxQueue to ServerNode, refactor Event to use node index, and implement buildNodeStates method in Net 2025-02-06 14:28:49 +01:00
14063300f2 Update simulation result handling and improve result processing 2025-02-05 21:19:19 +01:00