|
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.inet.sensorsim.BatteryTable
This class implements the table that specifies the capacity of a battery as a function of its current.
| Field Summary | |
static int |
CAPACITY
|
static int |
CURRENT
|
static int |
MAX_CAPACITY
|
static int |
MAX_TABLE_SIZE
|
static int |
SEC_IN_HOUR
|
| Constructor Summary | |
BatteryTable()
|
|
| Method Summary | |
double |
computeNewCapacity(double current,
double duration)
Computes the new value of the capacity based on a given value for current and after a certain given time duration |
double |
getCapacity(double current)
Gets the interpolated capacity at a given value of current |
double |
getCurCapacity()
Gets the current capacity |
int |
inputData(int i,
double current,
double capacity)
Inputs an entry in the table |
void |
setMaxCapacity(double a)
Sets the maximum capacity |
| Methods inherited from class drcl.DrclObj |
clone, duplicate, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MAX_TABLE_SIZE
public static final int CURRENT
public static final int CAPACITY
public static final int SEC_IN_HOUR
public static final int MAX_CAPACITY
| Constructor Detail |
public BatteryTable()
| Method Detail |
public void setMaxCapacity(double a)
public double getCurCapacity()
public double computeNewCapacity(double current,
double duration)
public double getCapacity(double current)
public int inputData(int i,
double current,
double capacity)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||