Package ngs
Interface Statistics
public interface Statistics
Statistical data container
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondouble
getAsDouble
(String path) getAsDoublelong
getAsI64getAsString
(String path) getAsStringlong
getAsU64int
getValueType
(String path) getValueTypenextPath advance to next path in container
-
Field Details
-
none
static final int noneValueType- See Also:
-
string
static final int string- See Also:
-
int64
static final int int64- See Also:
-
uint64
static final int uint64- See Also:
-
real
static final int real- See Also:
-
-
Method Details
-
getValueType
getValueType- Parameters:
path
- is hierarchical path to value node- Returns:
- one of { none, string, int64, uint64, real }
-
getAsString
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
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
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
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
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
-