X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/446069ad8e6d4580649af853f64ebbd259737bbe..afd3a47e007a0f91d206cc2e47b69b4b86970fc2:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 5823a71414..8d2daffe09 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -4,22 +4,12 @@ /* 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. */ -#include - -#include -#include - -#include -#include - -#include "surf/datatypes.h" -#include "surf_interface.hpp" -#include "maxmin_private.hpp" -#include "trace_mgr.hpp" - #ifndef SURF_CPU_INTERFACE_HPP_ #define SURF_CPU_INTERFACE_HPP_ +#include "simgrid/s4u/host.hpp" +#include "src/surf/maxmin_private.hpp" + /*********** * Classes * ***********/ @@ -37,9 +27,6 @@ class CpuAction; */ XBT_PUBLIC_CLASS CpuModel : public Model { public: - CpuModel() : Model() {}; - ~CpuModel() override; - /** * @brief Create a Cpu * @@ -51,7 +38,6 @@ public: void updateActionsStateLazy(double now, double delta) override; void updateActionsStateFull(double now, double delta) override; - bool next_occuring_event_isIdempotent() override; }; /************ @@ -105,7 +91,7 @@ public: virtual simgrid::surf::Action *sleep(double duration)=0; /** @brief Get the amount of cores */ - virtual int getCoreCount(); + virtual int coreCount(); /** @brief Get the speed, accounting for the trace load and provided process load instead of the real current one */ virtual double getSpeed(double load);