+/* Copyright (c) 2013-2014. 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. */
+
+#include "cpu_interface.hpp"
void (CpuCas01Model::*updateActionsState)(double now, double delta);
void parseInit(sg_platf_host_cbarg_t host);
void (CpuCas01Model::*updateActionsState)(double now, double delta);
void parseInit(sg_platf_host_cbarg_t host);
- CpuCas01LmmPtr createResource(const char *name, double power_peak, double power_scale,
+ CpuPtr createResource(const char *name, xbt_dynar_t power_peak, int pstate,
+ double power_scale,
tmgr_trace_t power_trace, int core,
e_surf_resource_state_t state_initial,
tmgr_trace_t state_trace,
xbt_dict_t cpu_properties);
double shareResourcesFull(double now);
void addTraces();
tmgr_trace_t power_trace, int core,
e_surf_resource_state_t state_initial,
tmgr_trace_t state_trace,
xbt_dict_t cpu_properties);
double shareResourcesFull(double now);
void addTraces();
- CpuCas01Lmm(CpuCas01ModelPtr model, const char *name, double powerPeak,
- double powerScale, tmgr_trace_t powerTrace, int core,
+ CpuCas01(CpuCas01ModelPtr model, const char *name, xbt_dynar_t power_peak,
+ int pstate, double powerScale, tmgr_trace_t powerTrace, int core,
- CpuCas01ActionLmm() {};
- CpuCas01ActionLmm(ModelPtr model, double cost, bool failed): Action(model, cost, failed), CpuActionLmm(model, cost, failed) {};
+ CpuCas01Action() {};
+ CpuCas01Action(ModelPtr model, double cost, bool failed, double power, lmm_constraint_t constraint);