X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3e4803befab19389587dd1d9af5ecdeffec551e..b85de8f1e83118f564f9ee5af0c4d90049147739:/src/surf/host_ptask_L07.hpp diff --git a/src/surf/host_ptask_L07.hpp b/src/surf/host_ptask_L07.hpp index ac3bf98b31..34d7a2cab5 100644 --- a/src/surf/host_ptask_L07.hpp +++ b/src/surf/host_ptask_L07.hpp @@ -1,9 +1,11 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. +/* Copyright (c) 2013-2015. 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 "host_interface.hpp" #ifndef HOST_L07_HPP_ @@ -13,16 +15,15 @@ * Classes * ***********/ -class HostL07Model; -class CpuL07Model; -class NetworkL07Model; - -class HostL07; -class CpuL07; -class LinkL07; +class XBT_PRIVATE HostL07Model; +class XBT_PRIVATE CpuL07Model; +class XBT_PRIVATE NetworkL07Model; -class L07Action; +class XBT_PRIVATE HostL07; +class XBT_PRIVATE CpuL07; +class XBT_PRIVATE LinkL07; +class XBT_PRIVATE L07Action; /********* * Tools * *********/ @@ -39,19 +40,18 @@ public: void updateActionsState(double now, double delta); Host *createHost(const char *name); Action *executeParallelTask(int host_nb, - void **host_list, - double *flops_amount, - double *bytes_amount, - double rate); + sg_host_t *host_list, + double *flops_amount, + double *bytes_amount, + double rate); xbt_dynar_t getRoute(Host *src, Host *dst); - Action *communicate(Host *src, Host *dst, double size, double rate); void addTraces(); NetworkModel *p_networkModel; }; class CpuL07Model : public CpuModel { public: - CpuL07Model() : CpuModel() {}; + CpuL07Model(HostL07Model *hmodel) : CpuModel() {p_hostModel = hmodel;}; ~CpuL07Model() {surf_cpu_model_pm = NULL;}; Cpu *createCpu(const char *name, xbt_dynar_t powerPeak, int pstate, double power_scale, @@ -66,7 +66,7 @@ public: class NetworkL07Model : public NetworkModel { public: - NetworkL07Model() : NetworkModel() {}; + NetworkL07Model(HostL07Model *hmodel) : NetworkModel() {p_hostModel = hmodel;}; ~NetworkL07Model() {surf_network_model = NULL;}; Link* createLink(const char *name, double bw_initial, @@ -79,7 +79,7 @@ public: e_surf_link_sharing_policy_t policy, xbt_dict_t properties); - Action *communicate(RoutingEdge */*src*/, RoutingEdge */*dst*/, double /*size*/, double /*rate*/) {DIE_IMPOSSIBLE;}; + Action *communicate(RoutingEdge *src, RoutingEdge *dst, double size, double rate); void addTraces() {DIE_IMPOSSIBLE;}; bool shareResourcesIsIdempotent() {return true;} @@ -162,7 +162,7 @@ class L07Action : public HostAction { friend Action *HostL07::execute(double size); friend Action *HostL07::sleep(double duration); friend Action *HostL07Model::executeParallelTask(int host_nb, - void **host_list, + sg_host_t*host_list, double *flops_amount, double *bytes_amount, double rate);