X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e5e8d36b6983bd96ff5a1291cd06105273060c4b..ebc355d0c96552d0bc2aa301d90723490337bca3:/src/surf/host_clm03.hpp diff --git a/src/surf/host_clm03.hpp b/src/surf/host_clm03.hpp index ef4ec1c51b..781384d151 100644 --- a/src/surf/host_clm03.hpp +++ b/src/surf/host_clm03.hpp @@ -1,15 +1,9 @@ -/* Copyright (c) 2013-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2019. 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 "storage_interface.hpp" -#include "cpu_interface.hpp" -#include "host_interface.hpp" -#include "network_interface.hpp" +#include "src/surf/HostImpl.hpp" #ifndef SURF_HOST_CLM03_HPP_ #define SURF_HOST_CLM03_HPP_ @@ -21,28 +15,12 @@ namespace simgrid { namespace surf { -class XBT_PRIVATE HostCLM03Model; - -/********* - * Model * - *********/ - -class HostCLM03Model : public HostModel { +class XBT_PRIVATE HostCLM03Model : public HostModel { public: - HostCLM03Model(): HostModel(){} - ~HostCLM03Model() {} - Host *createHost(const char *name, RoutingEdge *netElm, Cpu *cpu, xbt_dict_t props) override; - double shareResources(double now) override; - - void updateActionsState(double now, double delta) override; - - Action *executeParallelTask(int host_nb, - sg_host_t *host_list, - double *flops_amount, - double *bytes_amount, - double rate) override; + HostCLM03Model(); + double next_occuring_event(double now) override; + void update_actions_state(double now, double delta) override; }; - } }