Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move parts of the kernel to the right subdir
[simgrid.git] / src / kernel / routing / AsNone.cpp
diff --git a/src/kernel/routing/AsNone.cpp b/src/kernel/routing/AsNone.cpp
new file mode 100644 (file)
index 0000000..41c6272
--- /dev/null
@@ -0,0 +1,34 @@
+/* Copyright (c) 2009-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. */
+
+#include <xbt/dict.h>
+#include <xbt/graph.h>
+#include <xbt/log.h>
+
+#include "src/kernel/routing/AsNone.hpp"
+
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_none, surf, "Routing part of surf");
+
+namespace simgrid {
+namespace routing {
+
+AsNone::AsNone(const char*name)
+  : AsImpl(name)
+{}
+
+AsNone::~AsNone()
+{}
+
+void AsNone::getRouteAndLatency(NetCard * /*src*/, NetCard * /*dst*/,
+                                sg_platf_route_cbarg_t /*res*/, double */*lat*/)
+{}
+
+void AsNone::getGraph(xbt_graph_t /*graph*/, xbt_dict_t /*nodes*/, xbt_dict_t /*edges*/)
+{
+  XBT_ERROR("No routing no graph");
+}
+
+}
+}