Skip to content

feat: add Admin class to manage simulation and reporting#18

Merged
David-A-T-M merged 1 commit into
masterfrom
1feat/network
Mar 21, 2026
Merged

feat: add Admin class to manage simulation and reporting#18
David-A-T-M merged 1 commit into
masterfrom
1feat/network

Conversation

@David-A-T-M
Copy link
Copy Markdown
Owner

This pull request introduces a new Admin class to the core model, providing a high-level interface for running network simulations and generating periodic reports. The Admin class acts as a facade, simplifying simulation control and statistics reporting for users of the simulation framework.

New simulation control and reporting features:

  • Added the Admin class in ar.edu.unc.david.routersimulator.model.core as a facade to manage a Network instance, run simulations for a specified number of ticks, and print formatted periodic reports of network statistics.
  • Implemented methods in Admin to print detailed network statistics (such as packets, pages, and rates) in a formatted report to stdout, and to run the simulation with customizable reporting intervals.

- Introduce `Admin` class as a facade for driving simulations and generating periodic network reports.
  - Manages a `Network` instance and enforces non-null constraints.
  - Provides methods to:
    - Output detailed network statistics (routers, terminals, packets, pages, rates).
    - Run simulations for a specified number of ticks with optional interval-based reporting.
  - Implements default reporting interval for simpler invocation.
@David-A-T-M David-A-T-M self-assigned this Mar 21, 2026
Copy link
Copy Markdown
Owner Author

@David-A-T-M David-A-T-M left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge

@David-A-T-M David-A-T-M merged commit f953088 into master Mar 21, 2026
1 check passed
@David-A-T-M David-A-T-M deleted the 1feat/network branch March 21, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant