#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 *
*********/
/*********
* Model *
*********/
+
+namespace simgrid {
+namespace surf {
+
class NetworkCm02Model : public NetworkModel {
private:
void initialize();
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*/) {};
* 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:
double m_senderGap;
};
+}
+}
+
#endif /* SURF_NETWORK_CM02_HPP_ */