X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ee788f4511c85f6d6685fdd6692169453e244ce1..504b4d20dd2db9ea1eaa9c4b390b2a412d7c9779:/src/surf/cpu_private.h diff --git a/src/surf/cpu_private.h b/src/surf/cpu_private.h index f5ee3c304d..63017a446d 100644 --- a/src/surf/cpu_private.h +++ b/src/surf/cpu_private.h @@ -1,19 +1,36 @@ -/* Authors: Arnaud Legrand */ +/* $Id$ */ + +/* Copyright (c) 2004 Arnaud Legrand. 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. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _SURF_HOST_PRIVATE_H -#define _SURF_HOST_PRIVATE_H +#ifndef _SURF_CPU_PRIVATE_H +#define _SURF_CPU_PRIVATE_H -#include "surf/surf.h" -#include "surf/surf_private.h" +#include "surf_private.h" +#include "xbt/dict.h" -typedef struct surf_action_host { +typedef struct surf_action_cpu_Cas01 { s_surf_action_t generic_action; lmm_variable_t variable; -} s_surf_action_host_t, *surf_action_host_t; + int suspended; +} s_surf_action_cpu_Cas01_t, *surf_action_cpu_Cas01_t; + +typedef struct cpu_Cas01 { + surf_model_t model; /* Any such object, added in a trace + should start by this field!!! */ + char *name; + double power_scale; + double power_current; + tmgr_trace_event_t power_event; + e_surf_cpu_state_t state_current; + tmgr_trace_event_t state_event; + lmm_constraint_t constraint; + /*Handles the properties that can be added to cpu's*/ + xbt_dict_t properties; +} s_cpu_Cas01_t, *cpu_Cas01_t; -surf_host_resource_t surf_host_resource_init(void); +extern xbt_dict_t cpu_set; -#endif /* _SURF_SURF_PRIVATE_H */ +#endif /* _SURF_CPU_PRIVATE_H */