NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NetSim::SimulationManager Class Reference

Manages and simulates a network consisting of clients, servers, and routers. More...

#include <simulationmanager.h>

Public Member Functions

 SimulationManager (quint8 clientAmount, quint8 serverAmount, QList< QString > domains)
 Constructs a new simulation manager with the specified amounts of clients and servers, and domains.
 
quint8 clientsAmount () const
 Retrieves the number of clients.
 
quint8 serversAmount () const
 Retrieves the number of servers.
 
QList< Server > * servers ()
 Provides access to the list of servers.
 
QList< Client > * clients ()
 Provides access to the list of clients.
 
QList< Router > * routers ()
 Provides access to the list of routers.
 
void setPackages (PackageTableModel *packages)
 Integrates with a PackageTableModel to simulate packet flow.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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
clientAmountNumber of clients.
serverAmountNumber of servers.
domainsList of domain names.
Here is the call graph for this function:

Member Function Documentation

◆ 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
quint8Amount of clients.

◆ 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
quint8Amount of servers.

◆ setPackages()

void SimulationManager::setPackages ( PackageTableModel packages)

Integrates with a PackageTableModel to simulate packet flow.

Parameters
packagesPointer to a PackageTableModel.

The documentation for this class was generated from the following files: