feat: add Admin class to manage simulation and reporting#18
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
Adminclass to the core model, providing a high-level interface for running network simulations and generating periodic reports. TheAdminclass acts as a facade, simplifying simulation control and statistics reporting for users of the simulation framework.New simulation control and reporting features:
Adminclass inar.edu.unc.david.routersimulator.model.coreas a facade to manage aNetworkinstance, run simulations for a specified number of ticks, and print formatted periodic reports of network statistics.Adminto 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.