Interface MeasurementReader<T extends ModelAwareMeasurement>

    • Method Detail

      • read

        T read​(java.util.List<java.io.File> files,
               ModelDelegate modelDelegate,
               MeasurementReaderOptions options)
        throws ReaderException
        reads the file and returns a measurement that uses the model defined by the given model-delegate
        Parameters:
        files - the file to read
        modelDelegate - the model-delegate to use for the measurement.
        options - the options for reading the files
        Returns:
        the measurement
        Throws:
        ReaderException
      • requiresOptions

        boolean requiresOptions()
        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.
        Returns:
        true if options are required, false if not
      • proposedModelDefinitionUri

        java.net.URI proposedModelDefinitionUri​(java.util.List<java.io.File> files)
        The proposed JMad model definition URI. Null if this reader does not propose a particular JMad model and the user should choose.
        Returns:
        the proposed model URI, if any