Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
actually kill models' names
[simgrid.git] / examples / java / surfCpuModel / CpuConstantModel.java
index 7f7d418..7a9e5de 100644 (file)
@@ -10,11 +10,10 @@ public class CpuConstantModel extends CpuModel {
   private List<CpuConstant> cpus = new ArrayList<CpuConstant>();
 
   public CpuConstantModel() {
-    super("Cpu Constant");
     Msg.info("Initialize Cpu Constant Model");
   }
 
-  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) {
+  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);