1 /* Copyright (c) 2009, 2013. 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. */
9 typedef struct workstation_CLM03 {
10 s_surf_resource_t generic_resource; /* Must remain first to add this to a trace */
13 } s_workstation_CLM03_t, *workstation_CLM03_t;
15 int ws_action_unref(surf_action_t action);
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);
23 void ws_action_set_priority(surf_action_t action, double priority);
25 surf_action_t ws_execute(void *workstation, double size);
26 surf_action_t ws_action_sleep(void *workstation, double duration);
27 void ws_action_suspend(surf_action_t action);
28 void ws_action_resume(surf_action_t action);
29 e_surf_resource_state_t ws_get_state(void *workstation);
30 #endif /* WS_PRIVATE_H_ */