X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/799a432e8ac74a0a84feb8dbf7a78a14068050b3..c66bb944af7d961fa6908a18a9d5ea949d2d390a:/src/mc/ModelChecker.hpp diff --git a/src/mc/ModelChecker.hpp b/src/mc/ModelChecker.hpp index 4e75bf5884..faca1facba 100644 --- a/src/mc/ModelChecker.hpp +++ b/src/mc/ModelChecker.hpp @@ -20,20 +20,21 @@ namespace mc { /** State of the model-checker (global variables for the model checker) */ class ModelChecker { - CheckerSide event_loop_; + CheckerSide checker_side_; /** String pool for host names */ std::set hostnames_; // This is the parent snapshot of the current state: PageStore page_store_{500}; - std::unique_ptr process_; + std::unique_ptr remote_simulation_; Checker* checker_ = nullptr; public: ModelChecker(ModelChecker const&) = delete; ModelChecker& operator=(ModelChecker const&) = delete; - explicit ModelChecker(std::unique_ptr process); + explicit ModelChecker(std::unique_ptr remote_simulation, int sockfd); - RemoteClientMemory& process() { return *process_; } + RemoteSimulation& get_remote_simulation() { return *remote_simulation_; } + Channel& channel() { return checker_side_.get_channel(); } PageStore& page_store() { return page_store_; @@ -46,8 +47,7 @@ public: void start(); void shutdown(); - void resume(simgrid::mc::RemoteClientMemory& process); - void handle_events(int fd, short events); + void resume(simgrid::mc::RemoteSimulation& get_remote_simulation); void wait_for_requests(); void handle_simcall(Transition const& transition);