X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d206d98b5c7c80f0614239ec37a21ebf7c69faa6..422ebe38da1dd2d6608e71a366e0d9af40bea830:/src/surf/host_interface.hpp diff --git a/src/surf/host_interface.hpp b/src/surf/host_interface.hpp index 0fd2d15afe..978ed351b5 100644 --- a/src/surf/host_interface.hpp +++ b/src/surf/host_interface.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2014. The SimGrid Team. +/* Copyright (c) 2004-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -9,6 +9,8 @@ #include "cpu_interface.hpp" #include "network_interface.hpp" +#include + #ifndef SURF_HOST_INTERFACE_HPP_ #define SURF_HOST_INTERFACE_HPP_ @@ -16,9 +18,9 @@ * Classes * ***********/ -class HostModel; -class Host; -class HostAction; +class XBT_PRIVATE HostModel; +class XBT_PRIVATE Host; +class XBT_PRIVATE HostAction; /************* * Callbacks * @@ -48,7 +50,6 @@ XBT_PUBLIC_DATA(surf_callback(void, HostAction*, e_surf_action_state_t, e_surf_a * Tools * *********/ XBT_PUBLIC_DATA(HostModel*) surf_host_model; -XBT_PUBLIC(void) host_parse_init(sg_platf_host_cbarg_t host); XBT_PUBLIC(void) host_add_traces(); /********* @@ -63,7 +64,7 @@ public: HostModel() : Model() {} ~HostModel() {} - virtual Host *createHost(const char *name)=0; + virtual Host *createHost(const char *name, RoutingEdge *net, Cpu *cpu)=0; void addTraces(){DIE_IMPOSSIBLE;} virtual void adjustWeightOfDummyCpuActions(); @@ -143,40 +144,6 @@ public: */ virtual Action *sleep(double duration)=0; - /** - * @brief Get the number of cores of the associated Cpu - * - * @return The number of cores of the associated Cpu - * @see Cpu - */ - virtual int getCore(); - - /** - * @brief Get the speed of the associated Cpu - * - * @param load [TODO] - * @return The speed of the associated Cpu - * @see Cpu - */ - virtual double getSpeed(double load); - - /** - * @brief Get the available speed of the associated Cpu - * @details [TODO] - * - * @return The available speed of the associated Cpu - * @see Cpu - */ - virtual double getAvailableSpeed(); - - /** @brief Get the associated Cpu power peak */ - virtual double getCurrentPowerPeak(); - - virtual double getPowerPeakAt(int pstate_index); - virtual int getNbPstates(); - virtual void setPstate(int pstate_index); - virtual int getPstate(); - /** @brief Return the storage of corresponding mount point */ virtual Storage *findStorageOnMountList(const char* storage);