Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use boost instead of xbt in Vivaldi
[simgrid.git] / src / kernel / routing / AsVivaldi.hpp
index 5667ddb..7e702d8 100644 (file)
@@ -12,16 +12,26 @@ namespace simgrid {
 namespace kernel {
 namespace routing {
 
-/* This derivates from cluster because each host has a private link */
+/* This extends cluster because each host has a private link */
 class XBT_PRIVATE AsVivaldi: public AsCluster {
 public:
-  explicit AsVivaldi(const char *name);
-  ~AsVivaldi() override;
+  explicit AsVivaldi(As* father, const char* name);
 
-  xbt_dynar_t getOneLinkRoutes() override {return nullptr;};
-  void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override;
+  void getLocalRoute(NetCard* src, NetCard* dst, sg_platf_route_cbarg_t into, double* latency) override;
 };
 
-}}} // namespace
+namespace vivaldi {
+class XBT_PRIVATE Coords {
+public:
+  static simgrid::xbt::Extension<NetCard, Coords> EXTENSION_ID;
+  explicit Coords(NetCard* host, const char* str);
+  virtual ~Coords();
+
+  std::vector<double> coords;
+};
+}
+}
+}
+} // namespace
 
 #endif /* SURF_ROUTING_VIVALDI_HPP_ */