/* ----------------------------------------------------------------------------
* 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.
* A cpu constructor (using LMM)
* @param model
* @param name
- * @param properties
+ * @param props
* @param constraint
* @param core
* @param powerPeak
* A cpu constructor
* @param model
* @param name
- * @param properties
+ * @param props
* @param core
* @param powerPeak
* @param powerScale
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());