|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.BatteryLevelProfile
public class BatteryLevelProfile
BatteryLevelProfile class
Constructor Summary | |
---|---|
BatteryLevelProfile(CurveFit cf)
CurveFit Constructor |
|
BatteryLevelProfile(double loV,
double hiV)
Low/High Volt Constructor |
|
BatteryLevelProfile(java.lang.String blpStr)
String Constructor |
|
BatteryLevelProfile(java.lang.String blpStr,
double dftLoV,
double dftHiV)
String Constructor |
|
BatteryLevelProfile(XYPair[] xyProf)
XYPair Constructor |
Method Summary | |
---|---|
double |
getLevelFromVolts(double V)
Converts the specified battery voltage to the proper battery percent |
boolean |
hasCurveFit()
Returns true if this instance has a defined CurveFit |
boolean |
hasProfile()
Returns true if this instance has a defined XYPair profile |
boolean |
hasVoltageRange()
Returns true if this instance contains a valid voltage range |
boolean |
isValid()
Returns true if this instance is valid |
static boolean |
isValid(BatteryLevelProfile blp)
Returns true if the specified instance is valid |
void |
logInvalidWarning(java.lang.String blpStr)
Logs a warning if this instance is invalid |
static void |
main(java.lang.String[] argv)
Debug/Testing entry point |
java.lang.String |
toString()
Returns a String representation of this instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatteryLevelProfile(double loV, double hiV)
public BatteryLevelProfile(XYPair[] xyProf)
public BatteryLevelProfile(CurveFit cf)
public BatteryLevelProfile(java.lang.String blpStr, double dftLoV, double dftHiV)
public BatteryLevelProfile(java.lang.String blpStr)
Method Detail |
---|
public boolean isValid()
public static boolean isValid(BatteryLevelProfile blp)
public void logInvalidWarning(java.lang.String blpStr)
public boolean hasVoltageRange()
public boolean hasProfile()
public boolean hasCurveFit()
public java.lang.String toString()
toString
in class java.lang.Object
public double getLevelFromVolts(double V)
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |