Package gov.nist.microanalysis.EPQLibrary

Examples of gov.nist.microanalysis.EPQLibrary.SpectrumProperties




    @Override
    public void reset() {
        props = new SpectrumProperties();
    }
View Full Code Here




    @Override
    public void run() throws EPQException {
        SpectrumProperties props = getSpectrumProperties();
        Composition comp =
                props.getCompositionProperty(SpectrumProperties.MicroanalyticalComposition);
        double energy =
                ToSI.keV(props
                        .getNumericProperty(SpectrumProperties.BeamEnergy));

        // Create strategy
        Strategy strategy = AlgorithmUser.getGlobalStrategy();
        PhiRhoZAlgorithm corrAlg =
View Full Code Here

        @Override
        public SpectrumProperties extract(Element beamElement)
                throws IOException,
                EPQException {
            SpectrumProperties props = new SpectrumProperties();

            props.setNumericProperty(SpectrumProperties.BeamEnergy,
                    extractBeamEnergy(beamElement) / 1e3);

            return props;
        }
View Full Code Here

     *             if an error occurs while reading the options XML element
     * @throws EPQException
     *             if an error occurs while setting up the options
     */
    public void extract(Element root) throws IOException, EPQException {
        props = new SpectrumProperties();

        // Header
        String version = root.getAttributeValue("version");
        if (!version.equalsIgnoreCase(VERSION))
            throw new IOException("Incompatible version: " + version + " != "
View Full Code Here

                throw new IOException(e);
            }

            Material material = materials.get(materialIndex);

            SpectrumProperties props = new SpectrumProperties();
            props.setCompositionProperty(
                    SpectrumProperties.MicroanalyticalComposition, material);
            props.setNumericProperty(SpectrumProperties.SpecimenDensity,
                    FromSI.gPerCC(material.getDensity()));

            return props;
        }
View Full Code Here

        OptionsExtractor extractor = new OptionsExtractor();
        extractor.extract(rootElement);

        // Create simulation
        String name = extractor.getName();
        SpectrumProperties props = extractor.getSpectrumProperties();
        Map<String, Detector> detectors = extractor.getDetectors();
        Strategy strategy = extractor.getStrategy();

        // Apply models' strategy
        report(0.0, "Setup models");
View Full Code Here



    @Override
    public void run() throws EPQException {
        SpectrumProperties props = getSpectrumProperties();
        Composition comp =
                props.getCompositionProperty(SpectrumProperties.MicroanalyticalComposition);
        double density =
                ToSI.gPerCC(props
                        .getNumericProperty(SpectrumProperties.SpecimenDensity));

        // Create strategy
        Strategy strategy = AlgorithmUser.getGlobalStrategy();
        PhiRhoZAlgorithm corrAlg =
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.EPQLibrary.SpectrumProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.