swigCMemOwn
Modifier | Constructor and Description |
---|---|
protected |
Cpu(long cPtr,
boolean cMemoryOwn) |
|
Cpu(Model model,
java.lang.String name,
XbtDict props,
int core,
double powerPeak,
double powerScale)
A cpu constructor
|
|
Cpu(Model model,
java.lang.String name,
XbtDict props,
LmmConstraint constraint,
int core,
double powerPeak,
double powerScale)
A cpu constructor (using LMM)
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
CpuAction |
execute(double size)
Execute some quantity of computation
|
protected void |
finalize() |
double |
getAvailableSpeed()
TODO
|
int |
getCore() |
protected static long |
getCPtr(Cpu obj) |
double |
getCurrentPowerPeak() |
int |
getNbPstates() |
double |
getPowerPeakAt(int pstate_index) |
int |
getPstate() |
double |
getSpeed(double load)
TODO
|
void |
setPstate(int pstate_index) |
void |
setState(ResourceState state) |
CpuAction |
sleep(double duration)
Make a process sleep for duration
|
protected void |
swigDirectorDisconnect() |
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
getConstraint, getCPtr, getModel, getName, getProperties, getState, isUsed, updateState
protected Cpu(long cPtr, boolean cMemoryOwn)
public Cpu(Model model, java.lang.String name, XbtDict props, LmmConstraint constraint, int core, double powerPeak, double powerScale)
model
- name
- props
- constraint
- core
- powerPeak
- powerScale
- protected static long getCPtr(Cpu obj)
protected void swigDirectorDisconnect()
public void swigReleaseOwnership()
public void swigTakeOwnership()
public double getCurrentPowerPeak()
public CpuAction execute(double size)
size
- The processing amount (in flop) needed to processpublic CpuAction sleep(double duration)
duration
- The number of seconds to sleeppublic int getCore()
public double getSpeed(double load)
load
- public double getAvailableSpeed()
public double getPowerPeakAt(int pstate_index)
pstate_index
- index of power peak to getpublic int getNbPstates()
public void setPstate(int pstate_index)
public int getPstate()
public void setState(ResourceState state)
state
- The new state of the cpu