2 /* Copyright (c) 2013. The SimGrid Team.
3 * All rights reserved. */
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. */
8 #ifndef _SURF_CPU_CAS01_PRIVATE_H
9 #define _SURF_CPU_CAS01_PRIVATE_H
11 typedef struct cpu_Cas01 {
12 s_surf_resource_t generic_resource;
13 s_xbt_swag_hookup_t modified_cpu_hookup;
16 tmgr_trace_event_t power_event;
18 e_surf_resource_state_t state_current;
19 tmgr_trace_event_t state_event;
20 lmm_constraint_t constraint;
21 } s_cpu_Cas01_t, *cpu_Cas01_t;
23 void *cpu_cas01_create_resource(const char *name,
26 tmgr_trace_t power_trace,
28 e_surf_resource_state_t state_initial,
29 tmgr_trace_t state_trace,
30 xbt_dict_t cpu_properties,
31 surf_model_t cpu_model);
33 #endif /* _SURF_CPU_CAS01_PRIVATE_H */