X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96d605fde63f72480bf570f7bc7609e2954cb2d7..3690ed44d179e57962bb0f4e377057314cd79455:/src/mc/explo/Exploration.hpp diff --git a/src/mc/explo/Exploration.hpp b/src/mc/explo/Exploration.hpp index 5b27bffbe5..b5c1948674 100644 --- a/src/mc/explo/Exploration.hpp +++ b/src/mc/explo/Exploration.hpp @@ -23,10 +23,10 @@ namespace simgrid::mc { * `RemoteApp` interface (that is currently not perfectly sufficient to that extend). */ // abstract class Exploration : public xbt::Extendable { - RemoteApp* remote_app_; + RemoteApp& remote_app_; public: - explicit Exploration(RemoteApp* remote_app) : remote_app_(remote_app) {} + explicit Exploration(RemoteApp& remote_app) : remote_app_(remote_app) {} // No copy: Exploration(Exploration const&) = delete; @@ -50,16 +50,16 @@ public: virtual std::vector get_textual_trace() = 0; /** Log additional information about the state of the model-checker */ - virtual void log_state() = 0; + virtual void log_state(); - RemoteApp& get_remote_app() { return *remote_app_; } + RemoteApp& get_remote_app() { return remote_app_; } }; // External constructors so that the types (and the types of their content) remain hidden -XBT_PUBLIC Exploration* create_liveness_checker(RemoteApp* remote_app); -XBT_PUBLIC Exploration* create_dfs_exploration(RemoteApp* remote_app); -XBT_PUBLIC Exploration* create_communication_determinism_checker(RemoteApp* remote_app); -XBT_PUBLIC Exploration* create_udpor_checker(RemoteApp* remote_app); +XBT_PUBLIC Exploration* create_liveness_checker(RemoteApp& remote_app); +XBT_PUBLIC Exploration* create_dfs_exploration(RemoteApp& remote_app); +XBT_PUBLIC Exploration* create_communication_determinism_checker(RemoteApp& remote_app); +XBT_PUBLIC Exploration* create_udpor_checker(RemoteApp& remote_app); } // namespace simgrid::mc