Package org.woped.config.metrics

Examples of org.woped.config.metrics.Algorithm


        toBeSavedConfig.getConfiguration().unsetAlgorithms();
      toBeSavedConfig.getConfiguration().addNewAlgorithms();
     
      for(String metricID : algorithmOrigin.keySet())
        if(algorithmOrigin.get(metricID) == fileID) { 
          Algorithm algo = algorithmsMap.get(metricID);
          toBeSavedConfig.getConfiguration().getAlgorithms().addNewAlgorithm().set(algo);
        }
     
      toBeSavedConfig.save(new File(fileMap.get(fileID)), xmlOptions);
      confMap.put(fileID, toBeSavedConfig);
View Full Code Here


 
  /**
   * Add a new algorithm
   */
  public boolean addNewAlgorithm(String newAlgorithmID, int fileID) {
    Algorithm algo = Algorithm.Factory.newInstance();
    algo.setID(newAlgorithmID);
    algo.setNonTranslatable(true);
    algo.addNewThresholds();
   
    algorithmsMap.put(newAlgorithmID, algo)
    algorithmOrigin.put(newAlgorithmID, fileID);
   
    createManualGroups();
View Full Code Here

TOP

Related Classes of org.woped.config.metrics.Algorithm

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.