Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename AsRoute to BypassRoute, and move it to its own file
[simgrid.git] / src / kernel / routing / AsNone.cpp
1 /* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include <xbt/dict.h>
7 #include <xbt/graph.h>
8 #include <xbt/log.h>
9
10 #include "src/kernel/routing/AsNone.hpp"
11
12 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_none, surf, "Routing part of surf");
13
14 namespace simgrid {
15 namespace kernel {
16 namespace routing {
17
18 AsNone::AsNone(As* father, const char* name) : AsImpl(father, name)
19 {}
20
21 AsNone::~AsNone() = default;
22
23 void AsNone::getLocalRoute(NetCard* /*src*/, NetCard* /*dst*/, sg_platf_route_cbarg_t /*res*/, double* /*lat*/)
24 {}
25
26 void AsNone::getGraph(xbt_graph_t /*graph*/, xbt_dict_t /*nodes*/, xbt_dict_t /*edges*/)
27 {
28   XBT_ERROR("No routing no graph");
29 }
30
31 }}}