Package ngs

Interface Statistics


  • public interface Statistics
    Statistical data container
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int int64  
      static int none
      ValueType
      static int real  
      static int string  
      static int uint64  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getAsDouble​(java.lang.String path)
      getAsDouble
      long getAsI64​(java.lang.String path)
      getAsI64
      java.lang.String getAsString​(java.lang.String path)
      getAsString
      long getAsU64​(java.lang.String path)
      getAsU64
      int getValueType​(java.lang.String path)
      getValueType
      java.lang.String nextPath​(java.lang.String path)
      nextPath advance to next path in container
    • 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