- public Cpu createResource(String name, double[] power_peak, int pstate, double power_scale, TmgrTrace power_trace, int core, ResourceState state_initial, TmgrTrace state_trace, XbtDict cpu_properties) {
- Msg.info("Create Resource Name: "+name);
- CpuConstant res = new CpuConstant(this, name, cpu_properties, actions, 1, 1000, 1000);
+ public Cpu createCpu(String name, double[] power_peak, int pstate, double power_scale, TmgrTrace power_trace, int core, ResourceState state_initial, TmgrTrace state_trace, XbtDict cpu_properties) {
+ Msg.info("New Cpu("+name+", "+power_peak[pstate]+", "+power_scale+")");
+
+ CpuConstant res = new CpuConstant(this, name, cpu_properties, core, power_peak[pstate], power_scale);