#include <list>
-namespace simgrid {
-namespace kernel {
-namespace resource {
+namespace simgrid::kernel::resource {
/*********
* Model *
public:
static config::Flag<double> cfg_tcp_gamma;
static config::Flag<bool> cfg_crosstraffic;
+ static config::Flag<double> cfg_weight_S_parameter;
using Model::Model;
NetworkModel(const NetworkModel&) = delete;
* @param size The size of the message.
* @return The latency factor.
*/
- virtual double get_latency_factor(double /* size */) { return sg_latency_factor; }
+ virtual double get_latency_factor(double size = 0);
/**
* @brief Get the right multiplicative factor for the bandwidth.
* @param size The size of the message.
* @return The bandwidth factor.
*/
- virtual double get_bandwidth_factor(double /* size*/) { return sg_bandwidth_factor; }
+ virtual double get_bandwidth_factor(double size = 0);
double next_occurring_event_full(double now) override;
void insert_link_latency(std::vector<StandardLinkImpl*>& result, const std::vector<StandardLinkImpl*>& links,
double* latency);
-} // namespace resource
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::resource
#endif /* SIMGRID_KERNEL_RESOURCE_NETWORKMODEL_HPP */