Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the checker algorithms to their own directory
[simgrid.git] / src / mc / Checker.hpp
diff --git a/src/mc/Checker.hpp b/src/mc/Checker.hpp
deleted file mode 100644 (file)
index 4575439..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Copyright (c) 2016. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#ifndef SIMGRID_MC_CHECKER_HPP
-#define SIMGRID_MC_CHECKER_HPP
-
-#include <functional>
-#include <memory>
-#include <string>
-
-#include "src/mc/mc_forward.hpp"
-#include "src/mc/mc_record.h"
-#include "src/mc/Session.hpp"
-
-namespace simgrid {
-namespace mc {
-
-/** A model-checking algorithm
- *
- *  This is an abstract base class used to group the data, state, configuration
- *  of a model-checking algorithm.
- *
- *  Implementing this interface will probably not be really mandatory,
- *  you might be able to write your model-checking algorithm as plain
- *  imperative code instead.
- *
- *  It is expected to interact with the model-checking core through the
- * `Session` interface (but currently the `Session` interface does not
- *  have all the necessary features). */
-// abstract
-class Checker {
-  Session* session_;
-public:
-  Checker(Session& session);
-
-  // No copy:
-  Checker(Checker const&) = delete;
-  Checker& operator=(Checker const&) = delete;
-
-  virtual ~Checker();
-
-  /** Main function of this algorithm */
-  virtual int run() = 0;
-
-  /* These methods are callbacks called by the model-checking engine
-   * to get and display information about the current state of the
-   * model-checking algorithm: */
-
-  /** Show the current trace/stack
-   *
-   *  Could this be handled in the Session/ModelChecker instead? */
-  virtual RecordTrace getRecordTrace();
-
-  /** Generate a textual execution trace of the simulated application */
-  virtual std::vector<std::string> getTextualTrace();
-
-  /** Log additional information about the state of the model-checker */
-  virtual void logState();
-
-protected:
-  Session& getSession() { return *session_; }
-};
-
-XBT_PUBLIC() Checker* createLivenessChecker(Session& session);
-XBT_PUBLIC() Checker* createSafetyChecker(Session& session);
-XBT_PUBLIC() Checker* createCommunicationDeterminismChecker(Session& session);
-
-}
-}
-
-#endif