Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finally a proper working version of GTNets with RED as default ACM.
[simgrid.git] / src / surf / gtnets / gtnets_simulator.h
index 8765b96..dd36525 100644 (file)
@@ -26,6 +26,7 @@
 #include "tcp-newreno.h"
 #include "event.h"
 #include "routing-manual.h"
+#include "red.h"
 
 using namespace std;
 
@@ -59,18 +60,18 @@ private:
   Simulator *sim_;
   GTNETS_Topology *topo_;
   RoutingManual *rm_;
+  REDQueue *red_queue_;
   int nnode_;
   int is_topology_;
   int nflow_;
   double jitter_;
   int jitter_seed_;
-  Uniform *uniform_jitter_;
+  map< int, Uniform * > uniform_jitter_generator_;
 
     map < int, TCPServer * >gtnets_servers_;
     map < int, TCPSend * >gtnets_clients_;
     map < int, Linkp2p * >gtnets_links_;
     map < int, Node * >gtnets_nodes_;
-  //added by pedro in order to get statistics
     map < void *, int >gtnets_action_to_flow_;
 
     map < int, void *>gtnets_metadata_;