|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.FuelLevelProfile
public class FuelLevelProfile
Field Summary | |
---|---|
static java.lang.String[] |
ARG_FUEL_HEIGHT
|
static java.lang.String[] |
ARG_FUEL_LEVEL
|
static java.lang.String[] |
ARG_PROFILE
|
static java.lang.String[] |
ARG_ROD_HEIGHT
|
static java.lang.String[] |
ARG_TANK_HEIGHT
|
static java.lang.String |
FLP_CYLINDER_ID_percent
|
static java.lang.String |
FLP_CYLINDER_NAME
|
static java.lang.String |
FLP_LINEAR_ID_percent
|
static java.lang.String |
FLP_LINEAR_NAME
|
static java.lang.String |
FLP_NONE_ID
|
static java.lang.String |
FLP_NONE_NAME
|
static java.lang.String |
FLP_PROFILE_ID
|
static java.lang.String |
FLP_PROFILE_NAME
|
Constructor Summary | |
---|---|
FuelLevelProfile(java.lang.String profile,
I18N.Text desc)
Constructor |
Method Summary | |
---|---|
static FuelLevelProfile |
AddFuelLevelProfile(java.lang.String ID,
double scale,
org.opengts.db.FuelLevelProfile.ProfileItem[] prof,
I18N.Text desc)
Add a FuelLevelProfile |
static FuelLevelProfile |
AddFuelLevelProfile(java.lang.String ID,
java.lang.String profile,
I18N.Text desc)
Add a FuelLevelProfile |
double |
getActualFuelLevel(double fuelLevelVal)
Gets the actual fuel level from the event specified fuel level |
java.lang.String |
getDescription(java.util.Locale locale)
Gets the Description of this FuelLevelProfile |
static FuelLevelProfile |
GetFuelLevelProfile(java.lang.String profID)
Gets the FuelLevelProfile for the specified name. |
static FuelLevelProfile |
GetFuelLevelProfile(java.lang.String profID,
FuelLevelProfile dft)
Gets the FuelLevelProfile for the specified name. |
static OrderedMap<java.lang.String,java.lang.String> |
GetFuelLevelProfiles(java.util.Locale locale,
boolean inclNone)
Returns a list of FuelLevelProfile IDs |
java.lang.String |
getID()
Gets the ID of this FuelLevelProfile |
java.lang.String |
getName()
Gets the ID of this FuelLevelProfile |
double |
getOffset()
Gets the profile offset |
double |
getScale()
Gets the profile scale |
boolean |
hasCurveFit()
Returns true if CurveFit is enabled |
static boolean |
IsCylinder(java.lang.String flpn)
Convenience for checking the FuelLevelProfile name "CYLINDER" |
static boolean |
IsLinear(java.lang.String flpn)
Convenience for checking the FuelLevelProfile name "LINEAR" |
static boolean |
IsNone(java.lang.String flpn)
Convenience for checking the FuelLevelProfile name "NONE" |
static boolean |
IsProfile(java.lang.String flpn)
Convenience for checking the FuelLevelProfile name "PROFILE" |
boolean |
isValid()
Returns true if this FuelLevelProfile is valid |
static void |
main(java.lang.String[] argv)
|
static void |
printFuelLevelProfile(DCServerConfig dcs,
int width)
Prints the defined FuelLevelProfile headers |
double |
scaleValue(double val)
Adjusts the input value with the profile offset and scale |
void |
setDescription(I18N.Text desc)
Sets the Description of this FuelLevelProfile |
void |
setID(java.lang.String ID)
Gets the ID of this FuelLevelProfile |
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 |
Field Detail |
---|
public static java.lang.String FLP_NONE_NAME
public static java.lang.String FLP_NONE_ID
public static java.lang.String FLP_LINEAR_NAME
public static java.lang.String FLP_LINEAR_ID_percent
public static java.lang.String FLP_CYLINDER_NAME
public static java.lang.String FLP_CYLINDER_ID_percent
public static java.lang.String FLP_PROFILE_NAME
public static java.lang.String FLP_PROFILE_ID
public static final java.lang.String[] ARG_PROFILE
public static final java.lang.String[] ARG_FUEL_LEVEL
public static final java.lang.String[] ARG_TANK_HEIGHT
public static final java.lang.String[] ARG_FUEL_HEIGHT
public static final java.lang.String[] ARG_ROD_HEIGHT
Constructor Detail |
---|
public FuelLevelProfile(java.lang.String profile, I18N.Text desc)
Method Detail |
---|
public static boolean IsNone(java.lang.String flpn)
public static boolean IsLinear(java.lang.String flpn)
public static boolean IsCylinder(java.lang.String flpn)
public static boolean IsProfile(java.lang.String flpn)
public static OrderedMap<java.lang.String,java.lang.String> GetFuelLevelProfiles(java.util.Locale locale, boolean inclNone)
public static FuelLevelProfile AddFuelLevelProfile(java.lang.String ID, java.lang.String profile, I18N.Text desc)
public static FuelLevelProfile AddFuelLevelProfile(java.lang.String ID, double scale, org.opengts.db.FuelLevelProfile.ProfileItem[] prof, I18N.Text desc)
public static FuelLevelProfile GetFuelLevelProfile(java.lang.String profID)
public static FuelLevelProfile GetFuelLevelProfile(java.lang.String profID, FuelLevelProfile dft)
public static void printFuelLevelProfile(DCServerConfig dcs, int width)
public void setID(java.lang.String ID)
public java.lang.String getID()
public java.lang.String getName()
public void setDescription(I18N.Text desc)
public java.lang.String getDescription(java.util.Locale locale)
public double getScale()
public double getOffset()
public double scaleValue(double val)
public boolean isValid()
public boolean hasCurveFit()
public double getActualFuelLevel(double fuelLevelVal)
fuelLevelVal
- The event specified fuel level
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |