Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
start initializing routing fields in the constructors, not with a shotgun
[simgrid.git] / src / surf / surf_routing_cluster.hpp
index ce935c5..ad7f4a0 100644 (file)
@@ -26,7 +26,8 @@ class XBT_PRIVATE AsCluster;
 
 class AsCluster: public AsNone {
 public:
-  AsCluster() {}
+  AsCluster(const char*name);
+  void Seal() override {}; // nothing to do
 
   virtual void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override;
   void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges) override;
@@ -34,6 +35,8 @@ public:
   int parsePU(NetCard *elm) override; /* A host or a router, whatever */
   int parseAS(NetCard *elm) override;
   virtual void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position);
+  virtual void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster) {}
+
 
   Link* p_backbone = nullptr;
   void *p_loopback = nullptr;