X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/750b84f70b72040ad22d14a19a218f59b1b48ae6..756fb0c77d77141538617102cf8b496c830f2a47:/src/surf/workstation_private.h diff --git a/src/surf/workstation_private.h b/src/surf/workstation_private.h index 0b057093e7..d454d01cf3 100644 --- a/src/surf/workstation_private.h +++ b/src/surf/workstation_private.h @@ -1,28 +1,23 @@ -/* $Id$ */ - -/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2009, 2013. 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. */ -#ifndef _SURF_WORKSTATION_PRIVATE_H -#define _SURF_WORKSTATION_PRIVATE_H - -#include "surf_private.h" - +#ifndef WS_PRIVATE_H_ +#define WS_PRIVATE_H_ typedef struct workstation_CLM03 { - surf_resource_t resource; /* Any such object, added in a trace - should start by this field!!! */ - char *name; - void *cpu; - void *network_card; + s_surf_resource_t generic_resource; /* Must remain first to add this to a trace */ + void *net_elm; + xbt_dynar_t storage; } s_workstation_CLM03_t, *workstation_CLM03_t; -typedef struct surf_action_parallel_task_CSL05 { - s_surf_action_t generic_action; - lmm_variable_t variable; - double rate; - int suspended; -} s_surf_action_parallel_task_CSL05_t, *surf_action_parallel_task_CSL05_t; +void __init_workstation_CLM03(workstation_CLM03_t ws, const char *id); + +int ws_resource_used(void *resource_id); +double ws_share_resources(surf_model_t workstation_model, double now); +void ws_update_actions_state(surf_model_t workstation_model, double now, double delta); +void ws_update_resource_state(void *id, tmgr_trace_event_t event_type, double value, double date); +void ws_finalize(surf_model_t workstation_model); -#endif /* _SURF_WORKSTATION_PRIVATE_H */ +#endif /* WS_PRIVATE_H_ */