Class YaspDispersionMeasurementReader

    • Constructor Detail

      • YaspDispersionMeasurementReader

        public YaspDispersionMeasurementReader()
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface Reader
        Returns:
        a description of the files to handle
      • getFileFilter

        public javax.swing.filechooser.FileFilter getFileFilter()
        Specified by:
        getFileFilter in interface Reader
        Returns:
        the file filter which can be used for a file-open dialog.
      • isHandling

        public boolean isHandling​(java.util.List<java.io.File> files)
        Specified by:
        isHandling in interface Reader
        Parameters:
        files - the files to test
        Returns:
        true if this Reader can handle all the given files, false if not
      • isDispersionFile

        public static final boolean isDispersionFile​(java.lang.String fileName)
        determines, a file of the given name is a yasp dispersion-file.
        Parameters:
        fileName - the filename to check
        Returns:
        true, if it is a dispersion-file, false if not.
      • toString

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

        public boolean requiresOptions()
        Description copied from interface: MeasurementReader
        has to tell, if this measurement reader requires options. This is useful to decide in the gui, if the user has to be asked for them or not.
        Specified by:
        requiresOptions in interface MeasurementReader<DispersionMeasurement>
        Returns:
        true if options are required, false if not