1 /* Copyright (c) 2013-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "storage_interface.hpp"
8 #include "cpu_interface.hpp"
9 #include "host_interface.hpp"
10 #include "network_interface.hpp"
12 #ifndef SURF_HOST_CLM03_HPP_
13 #define SURF_HOST_CLM03_HPP_
21 class HostCLM03Action;
27 class HostCLM03Model : public HostModel {
29 HostCLM03Model(): HostModel(){}
31 Host *createHost(const char *name);
32 double shareResources(double now);
34 void updateActionsState(double now, double delta);
36 Action *executeParallelTask(int host_nb,
47 class HostCLM03 : public Host {
49 HostCLM03(HostModel *model, const char* name, xbt_dict_t properties, xbt_dynar_t storage, RoutingEdge *netElm, Cpu *cpu);
51 void updateState(tmgr_trace_event_t event_type, double value, double date);
53 virtual Action *execute(double size);
54 virtual Action *sleep(double duration);
55 e_surf_resource_state_t getState();
69 #endif /* SURF_HOST_CLM03_HPP_ */