Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename the class objects and C types for the As -> NetZone transition
[simgrid.git] / include / simgrid / s4u / As.hpp
diff --git a/include/simgrid/s4u/As.hpp b/include/simgrid/s4u/As.hpp
deleted file mode 100644 (file)
index f025657..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Copyright (c) 2016. The SimGrid Team. All rights reserved.               */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#ifndef SIMGRID_S4U_AS_HPP
-#define SIMGRID_S4U_AS_HPP
-
-#include <map>
-#include <string>
-#include <utility>
-#include <vector>
-
-#include <xbt/base.h>
-#include <xbt/graph.h>
-
-#include <simgrid/s4u/forward.hpp>
-
-#include "src/surf/xml/platf_private.hpp" // FIXME: kill sg_platf_route_cbarg_t to remove that UGLY include
-
-namespace simgrid {
-
-namespace surf {
-  class Link;
-}
-namespace kernel {
-  namespace routing {
-    class AsImpl;
-    class NetCard;
-  }
-}
-namespace s4u {
-
-/** @brief Autonomous Systems
- *
- * An AS is a network container, in charge of routing information between elements (hosts) and to the nearby ASes.
- * In SimGrid, there is a hierarchy of ASes, with a unique root AS (that you can retrieve from the s4u::Engine).
- */
-XBT_PUBLIC_CLASS As {
-protected:
-  friend simgrid::kernel::routing::AsImpl;
-
-  explicit As(As * father, const char* name);
-  virtual ~As();
-  
-public:
-  /** @brief Seal your AS once you're done adding content, and before routing stuff through it */
-  virtual void seal();
-  char *name();
-  As *father();;
-  xbt_dict_t children(); // Sub AS
-  xbt_dynar_t hosts();   // my content as a dynar
-
-public:
-  /* Add content to the AS, at parsing time. It should be sealed afterward. */
-  virtual int addComponent(kernel::routing::NetCard *elm); /* A host, a router or an AS, whatever */
-  virtual void addRoute(sg_platf_route_cbarg_t route);
-  virtual void addBypassRoute(sg_platf_route_cbarg_t e_route) = 0;
-
-  /*** Called on each newly created regular route (not on bypass routes) */
-  static simgrid::xbt::signal<void(bool symmetrical, kernel::routing::NetCard* src, kernel::routing::NetCard* dst,
-                                   kernel::routing::NetCard* gw_src, kernel::routing::NetCard* gw_dst,
-                                   std::vector<Link*>* link_list)>
-      onRouteCreation;
-
-protected:
-  std::vector<kernel::routing::NetCard*> vertices_; // our content, as known to our graph routing algorithm (maps vertexId -> vertex)
-
-private:
-  As* father_ = nullptr;
-  char* name_ = nullptr;
-
-  bool sealed_ = false; // We cannot add more content when sealed
-
-  xbt_dict_t children_ = xbt_dict_new_homogeneous(nullptr);                               // sub-ASes
-};
-
-}}; // Namespace simgrid::s4u
-
-#endif /* SIMGRID_S4U_AS_HPP */