Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement the DVFS functions in Java
[simgrid.git] / src / bindings / java / org / simgrid / msg / Host.java
index d4d336c..4da5e01 100644 (file)
@@ -136,6 +136,17 @@ public class Host {
 
        /** Returns the amount of Joules consumed by that host so far */
        public native double getConsumedEnergy();
+       
+       /** Returns the current pstate */
+       public native int getPstate();
+       /** Changes the current pstate */
+       public native void setPstate(int pstate);
+       public native int getPstatesCount();
+       /** Returns the speed of the processor (in flop/s) at the current pstate. See also @ref SURF_plugin_energy. */
+       public native double getCurrentPowerPeak();
+       /** Returns the speed of the processor (in flop/s) at a given pstate. See also @ref SURF_plugin_energy. */
+       public native double getPowerPeakAt(int pstate);
+       
 
        /** Class initializer, to initialize various JNI stuff */
        public static native void nativeInit();