Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
0e91cb59fb7c57edaf698ea031aea1917c66d182
[simgrid.git] / src / surf / cpu_private.h
1 /*      $Id$     */
2
3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef _SURF_CPU_PRIVATE_H
9 #define _SURF_CPU_PRIVATE_H
10
11 #include "surf_private.h"
12 #include "xbt/dict.h"
13 #include "xbt/str.h"
14
15 typedef struct surf_action_cpu_Cas01 {
16   s_surf_action_t generic_action;
17   lmm_variable_t variable;
18   int suspended;  
19 } s_surf_action_cpu_Cas01_t, *surf_action_cpu_Cas01_t;
20
21 typedef struct cpu_Cas01 {
22   surf_model_t model;   /* Any such object, added in a trace
23                                    should start by this field!!! */
24   char *name;
25   double power_scale;
26   double power_current;
27   tmgr_trace_event_t power_event;
28   e_surf_cpu_state_t state_current;
29   tmgr_trace_event_t state_event;
30   lmm_constraint_t constraint;
31   /*Handles the properties that can be added to cpu's*/
32   xbt_dict_t properties;
33 } s_cpu_Cas01_t, *cpu_Cas01_t;
34
35 extern xbt_dict_t cpu_set;
36
37 #endif                          /* _SURF_CPU_PRIVATE_H */