X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a92d7b716f51a53dea7f59db8524d4add713b910..e4e4b7da7f6a6d04b659f0aa9c1de8733939096f:/src/surf/host_clm03.hpp diff --git a/src/surf/host_clm03.hpp b/src/surf/host_clm03.hpp index b9da9f5421..8af735e20e 100644 --- a/src/surf/host_clm03.hpp +++ b/src/surf/host_clm03.hpp @@ -1,38 +1,29 @@ -/* Copyright (c) 2013-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2023. 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. */ -#include - -#include "StorageImpl.hpp" -#include "cpu_interface.hpp" -#include "network_interface.hpp" #include "src/surf/HostImpl.hpp" -#ifndef SURF_HOST_CLM03_HPP_ -#define SURF_HOST_CLM03_HPP_ +#ifndef HOST_CLM03_HPP_ +#define HOST_CLM03_HPP_ /*********** * Classes * ***********/ -namespace simgrid { -namespace surf { - -class XBT_PRIVATE HostCLM03Model; - -/********* - * Model * - *********/ +namespace simgrid::kernel::resource { -class HostCLM03Model : public HostModel { +class XBT_PRIVATE HostCLM03Model : public HostModel { public: - double nextOccuringEvent(double now) override; - void updateActionsState(double now, double delta) override; + using HostModel::HostModel; + double next_occurring_event(double now) override; + void update_actions_state(double now, double delta) override; + Action* execute_thread(const s4u::Host* host, double flops_amount, int thread_count) override; + Action* execute_parallel(const std::vector& host_list, const double* flops_amount, + const double* bytes_amount, double rate) override; + Action* io_stream(s4u::Host* src_host, DiskImpl* src_disk, s4u::Host* dst_host, DiskImpl* dst_disk, double size) override; }; -} -} +} // namespace simgrid::kernel::resource -#endif /* SURF_HOST_CLM03_HPP_ */ +#endif /* HOST_CLM03_HPP_ */