Package eu.planets_project.tb.api.model.benchmark

Examples of eu.planets_project.tb.api.model.benchmark.BenchmarkGoal


      String oldSourceValue="";
      String oldTargetValue="";
      String oldEvaluationValue="";
      if(hmFileGoals.keySet().size()>0){
        if(hmFileGoals.keySet().contains(addedBenchmarkGoalID)){
          BenchmarkGoal bmTemp = hmFileGoals.get(addedBenchmarkGoalID);
          oldSourceValue = bmTemp.getSourceValue();
          oldTargetValue = bmTemp.getTargetValue();
          oldEvaluationValue = bmTemp.getEvaluationValue();
          hmFileGoals.remove(addedBenchmarkGoalID);
        }
      }

      //set value:
View Full Code Here


        //now get the BMGoals and extract ID and value
        if((addedFileBMGoals.get(uri)!=null)&&(addedFileBMGoals.get(uri).size()>0)){
          Iterator<BenchmarkGoal> itBMGoals = addedFileBMGoals.get(uri).iterator();
         
          while(itBMGoals.hasNext()){
            BenchmarkGoal bmGoal = itBMGoals.next();
           
            //some preconditions
            if((bmGoal!=null)){
              if(!bmGoal.getSourceValue().equals("")){
                //now set the actual values
                this.evaluateFileBenchmarkGoal(uri, bmGoal.getID(), bmGoal.getSourceValue(),null, null);
              }
              if(!bmGoal.getTargetValue().equals("")){
                this.evaluateFileBenchmarkGoal(uri, bmGoal.getID(), null, bmGoal.getTargetValue(), null);

              }
              if(!bmGoal.getEvaluationValue().equals("")){
                this.evaluateFileBenchmarkGoal(uri, bmGoal.getID(), null, null, bmGoal.getEvaluationValue());

              }
            }
          }
        }
View Full Code Here

   * @see eu.planets_project.tb.api.model.ExperimentSetup#removeBenchmarkGoal(java.lang.String, java.lang.String)
   */
  public void removeBenchmarkGoal(String category, String name) {
    Iterator<BenchmarkGoalImpl> itGoals = this.hmBenchmarkGoals.values().iterator();
    while(itGoals.hasNext()){
      BenchmarkGoal goal = itGoals.next();
      if (goal.getCategory().equals(category)&&goal.getName().equals(name)){
        removeBenchmarkGoal(goal.getID());
      }
    }
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.model.benchmark.BenchmarkGoal

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.