Package eu.planets_project.tb.impl.model

Examples of eu.planets_project.tb.impl.model.PropertyEvaluationRecordImpl


      //TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
        Experiment exp = expBean.getExperiment();
       
        List<PropertyEvaluationRecordImpl> propEvalRecs = exp.getExperimentEvaluation().getPropertyEvaluation(digObjectRefCopy);
        PropertyEvaluationRecordImpl propEvalRec = null;
       
        if(propEvalRecs!=null){
          boolean bIsUpdate = false;
          for(PropertyEvaluationRecordImpl propEvalR : propEvalRecs){
            if(propEvalR.getPropertyID().equals(propertyID)){
              propEvalRec = propEvalR;
              //update an existing evaluation record
              propEvalRec.setPropertyEvalValue(evalValue);
              bIsUpdate = true;
            }
          }
         
          //create a new evaluation record
          if(!bIsUpdate){
            propEvalRec = new PropertyEvaluationRecordImpl(propertyID);
            propEvalRec.setPropertyEvalValue(evalValue);
          }
         
          exp.getExperimentEvaluation().addPropertyEvaluation(digObjectRefCopy, propEvalRec);
        }
     
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.impl.model.PropertyEvaluationRecordImpl

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.