Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
even more cleanups in the routing
[simgrid.git] / src / surf / network_smpi.hpp
1 /* Copyright (c) 2013-2015. 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 #include <xbt/base.h>
8
9 #include "network_cm02.hpp"
10
11 namespace simgrid {
12 namespace surf {
13
14 /***********
15  * Classes *
16  ***********/
17
18 class XBT_PRIVATE NetworkSmpiModel;
19
20 /*********
21  * Tools *
22  *********/
23
24 /*********
25  * Model *
26  *********/
27
28 class NetworkSmpiModel : public NetworkCm02Model {
29 public:
30   NetworkSmpiModel();
31   ~NetworkSmpiModel();
32
33   using NetworkCm02Model::gapAppend; // Explicit about overloaded method (silence Woverloaded-virtual from clang)
34   void gapAppend(double size, Link* link, NetworkAction *action);
35   void gapRemove(Action *action);
36   double latencyFactor(double size);
37   double bandwidthFactor(double size);
38   double bandwidthConstraint(double rate, double bound, double size);
39   void communicateCallBack() {};
40 };
41
42
43 /************
44  * Resource *
45  ************/
46
47
48 /**********
49  * Action *
50  **********/
51
52 }
53 }