Class WelchDataFileCollector

    • Field Detail

      • myDataFile

        protected java.io.File myDataFile
      • myData

        protected java.io.RandomAccessFile myData
      • myMetaDataFile

        protected java.io.File myMetaDataFile
      • myMetaData

        protected java.io.PrintWriter myMetaData
    • Constructor Detail

      • WelchDataFileCollector

        public WelchDataFileCollector​(java.nio.file.Path pathToDirectory,
                                      StatisticType statisticType,
                                      java.lang.String name,
                                      double batchSize)
    • Method Detail

      • getDirectory

        public java.io.File getDirectory()
        The directory for the files
        Returns:
        the directory for the file
      • getFileName

        public java.lang.String getFileName()
        The base file name for the files
        Returns:
        the base file name
      • makeWelchDataFileAnalyzer

        public WelchDataFileAnalyzer makeWelchDataFileAnalyzer()
        Makes a WelchDataFileAnalyzer based on the file in this collector
        Returns:
        a WelchDataFileAnalyzer
      • getDataFile

        public java.io.File getDataFile()
        The file made for the raw data
        Returns:
        a file with the raw data
      • getMetaDataFile

        public java.io.File getMetaDataFile()
        The file handle for the meta data file. The meta data file contains the number of replications as the first line, and the number of observations in each of the replications as the subsequent lines
        Returns:
        the meta data file
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • collect

        public void collect​(double time,
                            double value)
        Parameters:
        time - the time that the observation occurred
        value - the value of the observation at the observed time
      • getWelchFileMetaDataBeanAsJson

        public java.lang.String getWelchFileMetaDataBeanAsJson()
      • cleanUpCollector

        public void cleanUpCollector()
        Description copied from interface: WelchDataCollectorIfc
        Should be executed once after all replications have been observed