NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
ipackagestrategy.h
Go to the documentation of this file.
1#ifndef IPACKAGESTRATEGY_H
2#define IPACKAGESTRATEGY_H
3
5#include "src/network/host.h"
6
10
11namespace NetSim {
12
15
28public:
34 IPackageStrategy() = default;
35
42 virtual ~IPackageStrategy() = default;
43
54 virtual void handle(Package package, Host *host) const = 0;
55};
56} // namespace NetSim
57
58#endif // IPACKAGESTRATEGY_H
Represents a network host that can communicate through routers.
Definition host.h:32
Interface for defining strategies to handle packages.
Definition ipackagestrategy.h:27
virtual ~IPackageStrategy()=default
Virtual destructor to ensure correct cleanup for derived classes.
IPackageStrategy()=default
Default constructor.
virtual void handle(Package package, Host *host) const =0
Abstract method for handling packages.
Represents a network package.
Definition package.h:28
The Host class implements a host in the network.
Definition logger.h:12
Contains the Package class definition.