+ public static native void updateAllEnergyConsumptions();
+ /** Returns the amount of Joules consumed by that host so far
+ *
+ * Please note that since the consumption is lazily updated, it may require a simcall to update it.
+ * The result is that the actor requesting this value will be interrupted,
+ * the value will be updated in kernel mode before returning the control to the requesting actor.
+ */
+ 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 plugin_energy. */
+ public native double getCurrentPowerPeak();
+ /** Returns the speed of the processor (in flop/s) at a given pstate. See also @ref plugin_energy. */
+ public native double getPowerPeakAt(int pstate);
+
+
+ /** Class initializer, to initialize various JNI stuff */
+ private static native void nativeInit();