NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
simulationmanager.h
Go to the documentation of this file.
1#ifndef SIMULATIONMANAGER_H
2#define SIMULATIONMANAGER_H
3
7#include <QString>
8
12
13namespace NetSim {
14
18
31
32public:
41 explicit SimulationManager(quint8 clientAmount, quint8 serverAmount,
42 QList<QString> domains);
43
49 quint8 clientsAmount() const;
50
56 quint8 serversAmount() const;
57
63 QList<Server> *servers();
64
70 QList<Client> *clients();
71
77 QList<Router> *routers();
78
84 void setPackages(PackageTableModel *packages);
85
86private:
88 QList<Server> m_servers{};
89
91 QList<Client> m_clients{};
92
94 QList<Router> m_routers{};
95};
96} // namespace NetSim
97
98#endif // SIMULATIONMANAGER_H
Custom table model to represent a list of Package objects.
Definition packagetablemodel.h:25
Manages and simulates a network consisting of clients, servers, and routers.
Definition simulationmanager.h:30
QList< Server > * servers()
Provides access to the list of servers.
Definition simulationmanager.cpp:161
QList< Client > * clients()
Provides access to the list of clients.
Definition simulationmanager.cpp:163
void setPackages(PackageTableModel *packages)
Integrates with a PackageTableModel to simulate packet flow.
Definition simulationmanager.cpp:167
quint8 clientsAmount() const
Retrieves the number of clients.
Definition simulationmanager.cpp:153
QList< Router > * routers()
Provides access to the list of routers.
Definition simulationmanager.cpp:165
quint8 serversAmount() const
Retrieves the number of servers.
Definition simulationmanager.cpp:157
Contains the Client class definition.
Definition logger.h:12
Contains the Router class definition.
Contains the Server class definition.