X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/43540e99b9c710a14e7626d346b3f45b8ed4e7e5..b35d70d6818026204833410d2e3917252fa35127:/src/surf/network_cm02.hpp diff --git a/src/surf/network_cm02.hpp b/src/surf/network_cm02.hpp index dc691d0917..8d7e33a266 100644 --- a/src/surf/network_cm02.hpp +++ b/src/surf/network_cm02.hpp @@ -13,13 +13,22 @@ #include "xbt/fifo.h" #include "xbt/graph.h" + + /*********** * Classes * ***********/ + +namespace simgrid { +namespace surf { + class XBT_PRIVATE NetworkCm02Model; class XBT_PRIVATE NetworkCm02Action; class XBT_PRIVATE NetworkSmpiModel; +} +} + /********* * Tools * *********/ @@ -29,6 +38,10 @@ XBT_PRIVATE void net_define_callbacks(void); /********* * Model * *********/ + +namespace simgrid { +namespace surf { + class NetworkCm02Model : public NetworkModel { private: void initialize(); @@ -48,7 +61,7 @@ public: void addTraces(); void updateActionsStateLazy(double now, double delta); void updateActionsStateFull(double now, double delta); - Action *communicate(RoutingEdge *src, RoutingEdge *dst, + Action *communicate(NetCard *src, NetCard *dst, double size, double rate); bool shareResourcesIsIdempotent() {return true;} virtual void gapAppend(double /*size*/, const Link* /*link*/, NetworkAction * /*action*/) {}; @@ -85,7 +98,7 @@ public: * Action * **********/ class NetworkCm02Action : public NetworkAction { - friend Action *NetworkCm02Model::communicate(RoutingEdge *src, RoutingEdge *dst, double size, double rate); + friend Action *NetworkCm02Model::communicate(NetCard *src, NetCard *dst, double size, double rate); friend NetworkSmpiModel; public: @@ -96,4 +109,7 @@ protected: double m_senderGap; }; +} +} + #endif /* SURF_NETWORK_CM02_HPP_ */