Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
NetworkModelIntf: Interface to dynamic factors
[simgrid.git] / src / surf / network_smpi.hpp
1 /* Copyright (c) 2013-2021. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_SURF_NETWORK_SMPI_HPP
8 #define SIMGRID_SURF_NETWORK_SMPI_HPP
9
10 #include <xbt/base.h>
11
12 #include "network_cm02.hpp"
13
14 namespace simgrid {
15 namespace kernel {
16 namespace resource {
17
18 class XBT_PRIVATE NetworkSmpiModel : public NetworkCm02Model {
19 public:
20   using NetworkCm02Model::NetworkCm02Model;
21
22   double get_latency_factor(double size) override;
23   double get_bandwidth_factor(double size) override;
24   double get_bandwidth_constraint(double rate, double bound, double size) override;
25
26 protected:
27   virtual void check_lat_factor_cb() override;
28   virtual void check_bw_factor_cb() override;
29 };
30 } // namespace resource
31 } // namespace kernel
32 } // namespace simgrid
33
34 #endif