Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New: MSG_host_get_pstate() and smpi_get_host_pstate()
[simgrid.git] / src / bindings / java / org / simgrid / surf / Cpu.java
index 82ce3e2..0fec4c4 100644 (file)
@@ -1,6 +1,6 @@
 /* ----------------------------------------------------------------------------
  * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.11
+ * Version 2.0.12
  *
  * Do not make changes to this file unless you know what you are doing--modify
  * the SWIG interface file instead.
@@ -60,7 +60,7 @@ public class Cpu extends Resource {
     * A cpu constructor (using LMM)
     * @param model
     * @param name
-    * @param properties
+    * @param props
     * @param constraint
     * @param core
     * @param powerPeak
@@ -76,7 +76,7 @@ public class Cpu extends Resource {
     * A cpu constructor
     * @param model
     * @param name
-    * @param properties
+    * @param props
     * @param core
     * @param powerPeak
     * @param powerScale
@@ -158,17 +158,17 @@ public class Cpu extends Resource {
     return SurfJNI.Cpu_getNbPstates(swigCPtr, this);
   }
 
-  
-  /**
-    * @param  index of power peak to set
-    */
-  public void setPowerPeakAt(int pstate_index) {
-    SurfJNI.Cpu_setPowerPeakAt(swigCPtr, this, pstate_index);
+  public void setPstate(int pstate_index) {
+    SurfJNI.Cpu_setPstate(swigCPtr, this, pstate_index);
+  }
+
+  public int getPstate() {
+    return SurfJNI.Cpu_getPstate(swigCPtr, this);
   }
 
   
   /**
-    * @param The new state of the cpu
+    * @param state The new state of the cpu
     */
   public void setState(ResourceState state) {
     SurfJNI.Cpu_setState(swigCPtr, this, state.swigValue());