X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7da2926d0733ff0683f31aeea176ce71e127264f..878020909e91d141e57373397d8dede76c5fde03:/src/surf/network_constant.hpp diff --git a/src/surf/network_constant.hpp b/src/surf/network_constant.hpp index ad400846c6..8f3e1b9427 100644 --- a/src/surf/network_constant.hpp +++ b/src/surf/network_constant.hpp @@ -11,9 +11,13 @@ #include "network_interface.hpp" +namespace simgrid { +namespace surf { + /*********** * Classes * ***********/ + class XBT_PRIVATE NetworkConstantModel; class XBT_PRIVATE NetworkConstantAction; @@ -25,7 +29,7 @@ public: NetworkConstantModel() : NetworkModel() { }; ~NetworkConstantModel() { } - Action *communicate(RoutingEdge *src, RoutingEdge *dst, double size, double rate); + Action *communicate(NetCard *src, NetCard *dst, double size, double rate); double shareResources(double now); void updateActionsState(double now, double delta); bool shareResourcesIsIdempotent() {return true;} @@ -40,7 +44,7 @@ public: e_surf_link_sharing_policy_t policy, xbt_dict_t properties) { DIE_IMPOSSIBLE; } void addTraces() { DIE_IMPOSSIBLE; } - xbt_dynar_t getRoute(RoutingEdge *src, RoutingEdge *dst) { DIE_IMPOSSIBLE; } + xbt_dynar_t getRoute(NetCard *src, NetCard *dst) { DIE_IMPOSSIBLE; } }; /********** @@ -69,4 +73,7 @@ public: int m_suspended; }; +} +} + #endif /* NETWORK_CONSTANT_HPP_ */