Manages and simulates a network consisting of clients, servers, and routers.
More...
#include <simulationmanager.h>
Manages and simulates a network consisting of clients, servers, and routers.
The SimulationManager class serves as a core component to create and manage the various entities in the network such as clients, servers, and routers. It also integrates with the PackageTableModel to simulate packet flow through the network.
◆ SimulationManager()
SimulationManager::SimulationManager |
( |
quint8 |
clientAmount, |
|
|
quint8 |
serverAmount, |
|
|
QList< QString > |
domains |
|
) |
| |
|
explicit |
Constructs a new simulation manager with the specified amounts of clients and servers, and domains.
- Parameters
-
clientAmount | Number of clients. |
serverAmount | Number of servers. |
domains | List of domain names. |
◆ clients()
QList< Client > * SimulationManager::clients |
( |
| ) |
|
Provides access to the list of clients.
- Return values
-
QList<Client>* | Pointer to the list of clients. |
◆ clientsAmount()
quint8 SimulationManager::clientsAmount |
( |
| ) |
const |
Retrieves the number of clients.
- Return values
-
◆ routers()
QList< Router > * SimulationManager::routers |
( |
| ) |
|
Provides access to the list of routers.
- Return values
-
QList<Router>* | Pointer to the list of routers. |
◆ servers()
QList< Server > * SimulationManager::servers |
( |
| ) |
|
Provides access to the list of servers.
- Return values
-
QList<Server>* | Pointer to the list of servers. |
◆ serversAmount()
quint8 SimulationManager::serversAmount |
( |
| ) |
const |
Retrieves the number of servers.
- Return values
-
◆ setPackages()
The documentation for this class was generated from the following files: