Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #181 from bcamus/master
[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
19  *  has the highest expressive power and the lowest computational requirements,
20  *  but also the highest memory requirements (both in platform file and in memory).
21  */
22 class XBT_PRIVATE FullZone : public RoutedZone {
23 public:
24   explicit FullZone(NetZone* father, const char* name);
25   void seal() override;
26   ~FullZone() override;
27
28   void getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg_t into, double* latency) override;
29   void addRoute(sg_platf_route_cbarg_t route) override;
30
31   sg_platf_route_cbarg_t* routingTable_ = nullptr;
32 };
33 }
34 }
35 } // namespaces
36
37 #endif /* SIMGRID_ROUTING_FULL_HPP_ */