|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.inet.sensorsim.CPUBase
Abstract base class for CPU models.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
static int |
CPU_ACTIVE
|
static int |
CPU_IDLE
|
static int |
CPU_OFF
|
static int |
CPU_SLEEP
|
| Constructor Summary | |
CPUBase()
|
|
| Method Summary | |
void |
attachApp(Port port_)
Connects to the sensor application layer. |
boolean |
flagIsSet()
|
double |
getActiveCur()
Gets the active current. |
double |
getClockSpeed()
Gets the clock speed. |
int |
getCPUMode()
Gets the CPU mode. |
double |
getIdleCur()
Gets the idle current. |
double |
getOffCur()
Gets the OFF current. |
double |
getRemainingEnergy()
Gets the remaining energy. |
double |
getSleepCur()
Gets the sleep current. |
boolean |
isActive()
Returns true if the CPU is active. |
boolean |
isIdle()
Returns true if the CPU is idle. |
boolean |
isOff()
Returns true if the CPU is OFF. |
boolean |
isSleep()
Returns true if the CPU is sleep. |
void |
reportCpuMode(int mode)
Reports the CPU mode to the sensor application layer. |
double |
setActiveCur(double a)
Sets the active current. |
void |
setClockSpeed(double a)
Sets the clock speed. |
int |
setCPUMode(int a)
Sets the CPU mode. |
double |
setIdleCur(double a)
Sets the idle current. |
double |
setOffCur(double a)
Sets the OFF current. |
double |
setSleepCur(double a)
Sets the sleep current. |
void |
toggleFlag()
|
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CPU_IDLE
public static final int CPU_SLEEP
public static final int CPU_ACTIVE
public static final int CPU_OFF
| Constructor Detail |
public CPUBase()
| Method Detail |
public void attachApp(Port port_)
public void reportCpuMode(int mode)
public double getActiveCur()
public double getIdleCur()
public double getSleepCur()
public double getOffCur()
public double getClockSpeed()
public int getCPUMode()
public double getRemainingEnergy()
public double setActiveCur(double a)
public double setIdleCur(double a)
public double setSleepCur(double a)
public double setOffCur(double a)
public boolean isOff()
public boolean isSleep()
public boolean isIdle()
public boolean isActive()
public void toggleFlag()
public boolean flagIsSet()
public int setCPUMode(int a)
public void setClockSpeed(double a)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||