|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.latencybusters.lbm.sdm.LBMSDM
com.latencybusters.lbm.sdm.LBMSDMField
com.latencybusters.lbm.sdm.LBMSDMFieldDouble
public class LBMSDMFieldDouble
Implements an SDM Field of type Double
| Field Summary | |
|---|---|
protected double |
internalValue
The internal data storage for this field |
| Fields inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
DEBUG_BASIC, debug_level, DEBUG_VERBOSE_PARSING |
| Constructor Summary | |
|---|---|
protected |
LBMSDMFieldDouble(short type,
java.lang.String name)
Constructor for array subclasses |
|
LBMSDMFieldDouble(java.lang.String name)
Constructor for an unset double field. |
|
LBMSDMFieldDouble(java.lang.String name,
double v)
Constructor for a double field with a known decimal |
| Method Summary | |
|---|---|
static int |
fixed_size()
Get the length of formatted field (static field) |
int |
format(byte[] buf,
int offset)
Format the double in to a byte buffer |
protected int |
format(byte[] buf,
int offset,
double v)
Format a double in to a byte buffer |
int |
get_base_len()
Get the length of formatted field This is used by the respective array class |
int |
get_len()
Get the length of formatted field |
double |
get()
Get the double field |
int |
parse(byte[] buf,
int offset)
Parse a byte buffer and store the value |
void |
set(double v)
Set the double value. |
java.lang.String |
toDbgString()
Get a string useful for debugging |
java.lang.String |
toString()
Get the string form of the boolean |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMField |
|---|
add_element, append, clone, format_name, format_type, get_name, getType, getType, getTypeString, internalString, isNull, length, name_len, remove, sameBaseType, sameType, set_name, set, setNull, type_len |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
log, set_debug_level |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double internalValue
| Constructor Detail |
|---|
public LBMSDMFieldDouble(java.lang.String name)
name - The field name
public LBMSDMFieldDouble(java.lang.String name,
double v)
throws LBMSDMException
name - The field namev - The double to be used as the field value
LBMSDMException
protected LBMSDMFieldDouble(short type,
java.lang.String name)
type - The field type to be createdname - The name of the field to be created| Method Detail |
|---|
public double get()
public static int fixed_size()
public int get_len()
get_len in class LBMSDMFieldpublic final int get_base_len()
public void set(double v)
throws LBMSDMUnsignedException
v - The double to be set
LBMSDMUnsignedExceptionpublic java.lang.String toDbgString()
toDbgString in class LBMSDMField
protected int format(byte[] buf,
int offset,
double v)
throws LBMSDMException
buf - The byte buffer to have the double formatted inoffset - The offset to begin formatting in the bufferv - The double to be formatted
LBMSDMException
public int format(byte[] buf,
int offset)
throws LBMSDMException
format in class LBMSDMFieldbuf - The byte buffer to have the double formatted inoffset - The offset to begin formatting in the buffer
LBMSDMException - when an unexpected error occurs within LBMSDMpublic java.lang.String toString()
toString in class java.lang.Object
public int parse(byte[] buf,
int offset)
throws LBMSDMException
parse in class LBMSDMFieldbuf - The byte buffer to be parsed for the booleanoffset - The offset to begin parsing the buffer
LBMSDMException - parse() should be overridden
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||