Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
81dc19bd74e3c1a7385cc26573a833dcd50cae2d
[simgrid.git] / src / mc / api / guide / GuidedState.hpp
1 /* Copyright (c) 2007-2023. 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_MC_GUIDEDSTATE_HPP
7 #define SIMGRID_MC_GUIDEDSTATE_HPP
8
9 namespace simgrid::mc {
10
11 class GuidedState {
12   /** State's exploration status by actor. Not all the actors are there, only the ones that are ready-to-run in this
13    * state */
14   std::map<aid_t, ActorState> actors_to_run_;
15
16 public:
17   virtual std::pair<aid_t, double> next_transition() const = 0;
18   virtual void execute_next(aid_t aid)                     = 0;
19   friend class State;
20 };
21
22 } // namespace simgrid::mc
23
24 #endif