Examples of addAlgorithm()


Examples of com.sun.xacml.combine.BaseCombiningAlgFactory.addAlgorithm()

     */
    public CombiningAlgFactory useAlgorithms(Set<CombiningAlgorithm> algorithms) {
        CombiningAlgFactory result = new BaseCombiningAlgFactory();
        for (CombiningAlgorithm algorithm: algorithms){
            result.addAlgorithm(algorithm);
        }
        return result;
    }
    public FunctionFactoryProxy useStandardFunctions(){
View Full Code Here

Examples of com.sun.xacml.combine.CombiningAlgFactory.addAlgorithm()

     */
    public CombiningAlgFactory useAlgorithms(Set<CombiningAlgorithm> algorithms) {
        CombiningAlgFactory result = new BaseCombiningAlgFactory();
        for (CombiningAlgorithm algorithm: algorithms){
            result.addAlgorithm(algorithm);
        }
        return result;
    }
    public FunctionFactoryProxy useStandardFunctions(){
View Full Code Here

Examples of com.sun.xacml.combine.CombiningAlgFactory.addAlgorithm()

            if (child.getNodeName().equals("algorithm")) {
                // an algorithm is a simple class element
                CombiningAlgorithm alg = (CombiningAlgorithm) (loadClass("algorithm", child));
                try {
                    factory.addAlgorithm(alg);
                } catch (IllegalArgumentException iae) {
                    throw new ParsingException("duplicate combining " + "algorithm: "
                            + alg.getIdentifier().toString(), iae);
                }
            }
View Full Code Here

Examples of gov.nist.microanalysis.EPQLibrary.Strategy.addAlgorithm()

        Map<String, Detector> detectors = extractor.getDetectors();
        Strategy strategy = extractor.getStrategy();

        // Apply models' strategy
        report(0.0, "Setup models");
        strategy.addAlgorithm(PhiRhoZAlgorithm.class, getCorrectionAlgorithm());
        AlgorithmUser.applyGlobalOverride(strategy);

        // Setup and run detectors
        int i = 0;
        double length = detectors.size();
View Full Code Here

Examples of gov.nist.microanalysis.EPQLibrary.Strategy.addAlgorithm()

            if (nistModel == null)
                throw new IOException("Model (" + model + ") not found");

            Strategy st = new Strategy();
            st.addAlgorithm(nistModel.type, nistModel.algorithm);
            return st;
        }

    }
View Full Code Here

Examples of gov.nist.microanalysis.EPQLibrary.Strategy.addAlgorithm()

                mac.put(absorber, ToSI.eV(energy), macValue);
            }

            Strategy st = new Strategy();
            st.addAlgorithm(MassAbsorptionCoefficient.class, mac);
            return st;
        }
    }

    public static final ModelExtractor USER_DEFINED_MASS_ABSORPTION_COEFFICIENT =
View Full Code Here

Examples of org.grouplens.lenskit.eval.traintest.SimpleEvaluator.addAlgorithm()

        Properties props =  new Properties();
        props.setProperty(EvalConfig.DATA_DIR_PROPERTY, workDir.newFolder("data").getAbsolutePath());
        SimpleEvaluator evalCommand = new SimpleEvaluator(props);
        AlgorithmInstanceBuilder algo = new AlgorithmInstanceBuilder();
        configureAlgorithm(algo.getConfig());
        evalCommand.addAlgorithm(algo);

        evalCommand.addDataset(new GenericDataSource("ml-100k", dao, PreferenceDomain.fromString("[1,5]/1")), 5, 0.2);

        evalCommand.addMetric(new CoveragePredictMetric())
                   .addMetric(new RMSEPredictMetric())
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.combine.CombiningAlgFactory.addAlgorithm()

            if (SunxacmlUtil.getNodeName(child).equals("algorithm")) {
                // an algorithm is a simple class element
                CombiningAlgorithm alg =
                    (CombiningAlgorithm)(loadClass("algorithm", child));
                try {
                    factory.addAlgorithm(alg);
                } catch (IllegalArgumentException iae) {
                    throw new ParsingException("duplicate combining " +
                                               "algorithm: " +
                                               alg.getIdentifier().toString(),
                                               iae);
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.combine.CombiningAlgFactory.addAlgorithm()

            if (SunxacmlUtil.getNodeName(child).equals("algorithm")) {
                // an algorithm is a simple class element
                CombiningAlgorithm alg =
                    (CombiningAlgorithm)(loadClass("algorithm", child));
                try {
                    factory.addAlgorithm(alg);
                } catch (IllegalArgumentException iae) {
                    throw new ParsingException("duplicate combining " +
                                               "algorithm: " +
                                               alg.getIdentifier().toString(),
                                               iae);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.