Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prepare the model_private callbacks of ws
[simgrid.git] / src / surf / workstation_private.h
1 /* Copyright (c) 2009, 2013. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef WS_PRIVATE_H_
8 #define WS_PRIVATE_H_
9 typedef struct workstation_CLM03 {
10   s_surf_resource_t generic_resource;   /* Must remain first to add this to a trace */
11   void *net_elm;
12   xbt_dynar_t storage;
13 } s_workstation_CLM03_t, *workstation_CLM03_t;
14
15 void __init_ws(workstation_CLM03_t ws,  const char *id, int level);
16
17 int ws_resource_used(void *resource_id);
18 double ws_share_resources(surf_model_t workstation_model, double now);
19 void ws_update_actions_state(surf_model_t workstation_model, double now, double delta);
20 void ws_update_resource_state(void *id, tmgr_trace_event_t event_type, double value, double date);
21 void ws_finalize(surf_model_t workstation_model);
22
23 #endif /* WS_PRIVATE_H_ */