Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar don't like comments ending with ';'
[simgrid.git] / src / kernel / routing / FullZone.hpp
1 /* Copyright (c) 2013-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 #ifndef SIMGRID_ROUTING_FULL_HPP_
7 #define SIMGRID_ROUTING_FULL_HPP_
8
9 #include "src/kernel/routing/RoutedZone.hpp"
10
11 namespace simgrid {
12 namespace kernel {
13 namespace routing {
14
15 /** @ingroup ROUTING_API
16  *  @brief NetZone with an explicit routing provided by the user
17  *
18  *  The full communication matrix is provided at creation, so this model has the highest expressive power and the lowest
19  *  computational requirements, but also the highest memory requirements (both in platform file and in memory).
20  */
21 class XBT_PRIVATE FullZone : public RoutedZone {
22 public:
23   explicit FullZone(NetZone* father, std::string name);
24   void seal() override;
25   ~FullZone() override;
26
27   void getLocalRoute(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
28   void addRoute(kernel::routing::NetPoint* src, kernel::routing::NetPoint* dst, kernel::routing::NetPoint* gw_src,
29                 kernel::routing::NetPoint* gw_dst, std::vector<simgrid::surf::LinkImpl*>& link_list,
30                 bool symmetrical) override;
31
32   RouteCreationArgs** routingTable_ = nullptr;
33 };
34 }
35 }
36 } // namespaces
37
38 #endif /* SIMGRID_ROUTING_FULL_HPP_ */