Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow users to retrieve hosts and links by the zone in which they have been declared
[simgrid.git] / src / surf / network_ib.hpp
index ad0185d..f130d1c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2021. The SimGrid Team.
+/* Copyright (c) 2014-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -38,6 +38,9 @@ public:
 };
 
 class XBT_PRIVATE NetworkIBModel : public NetworkSmpiModel {
+  std::unordered_map<std::string, IBNode> active_nodes;
+  std::unordered_map<NetworkAction*, std::pair<IBNode*, IBNode*>> active_comms;
+
   double Bs_;
   double Be_;
   double ys_;
@@ -50,8 +53,9 @@ public:
   NetworkIBModel& operator=(const NetworkIBModel&) = delete;
   void update_IB_factors(NetworkAction* action, IBNode* from, IBNode* to, int remove) const;
 
-  std::unordered_map<std::string, IBNode> active_nodes;
-  std::unordered_map<NetworkAction*, std::pair<IBNode*, IBNode*>> active_comms;
+  static void IB_create_host_callback(s4u::Host const& host);
+  static void IB_action_state_changed_callback(NetworkAction& action, Action::State /*previous*/);
+  static void IB_comm_start_callback(const activity::CommImpl& comm);
 };
 } // namespace resource
 } // namespace kernel