Package ngs
Interface Statistics
-
public interface Statistics
Statistical data container
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getAsDouble(java.lang.String path)
getAsDoublelong
getAsI64(java.lang.String path)
getAsI64java.lang.String
getAsString(java.lang.String path)
getAsStringlong
getAsU64(java.lang.String path)
getAsU64int
getValueType(java.lang.String path)
getValueTypejava.lang.String
nextPath(java.lang.String path)
nextPath advance to next path in container
-
-
-
Field Detail
-
none
static final int none
ValueType- See Also:
- Constant Field Values
-
string
static final int string
- See Also:
- Constant Field Values
-
int64
static final int int64
- See Also:
- Constant Field Values
-
uint64
static final int uint64
- See Also:
- Constant Field Values
-
real
static final int real
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValueType
int getValueType(java.lang.String path)
getValueType- Parameters:
path
- is hierarchical path to value node- Returns:
- one of { none, string, int64, uint64, real }
-
getAsString
java.lang.String getAsString(java.lang.String path) throws ErrorMsg
getAsString- Parameters:
path
- is hierarchical path to value node- Returns:
- textual representation of value
- Throws:
ErrorMsg
- if path not found or value cannot be converted
-
getAsI64
long getAsI64(java.lang.String path) throws ErrorMsg
getAsI64- Parameters:
path
- is hierarchical path to value node- Returns:
- a signed 64-bit integer
- Throws:
ErrorMsg
- if path not found or value cannot be converted
-
getAsU64
long getAsU64(java.lang.String path) throws ErrorMsg
getAsU64- Parameters:
path
- is hierarchical path to value node- Returns:
- a non-negative 64-bit integer
- Throws:
ErrorMsg
- if path not found or value cannot be converted
-
getAsDouble
double getAsDouble(java.lang.String path) throws ErrorMsg
getAsDouble- Parameters:
path
- is hierarchical path to value node- Returns:
- a 64-bit floating point
- Throws:
ErrorMsg
- if path not found or value cannot be converted
-
nextPath
java.lang.String nextPath(java.lang.String path)
nextPath advance to next path in container- Parameters:
path
- is null or empty to request first path, or a valid path string- Returns:
- null if no more paths, or a valid path string
-
-