Package eu.planets_project.tb.api

Examples of eu.planets_project.tb.api.TestbedManager


              return positionMessage;
          }
    }
   
    public boolean isCurrentBatchJobQueued() {
      TestbedManager testbedMan = TestbedManagerImpl.getInstance();
          ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
          refreshExperimentBean();
          Experiment exp = expBean.getExperiment();

          if( exp.getExperimentExecutable() ==  null ) {
View Full Code Here


    /**
     * Used to ensure that the ExperimentBean reflects changes made in the background.
     */
    private void refreshExperimentBean() {
          TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
          ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
          ExperimentPersistencyRemote epr = testbedMan.getExperimentPersistencyRemote();
          Experiment exp = epr.findExperiment(expBean.getExperiment().getEntityID());
          expBean.setExperiment(exp);
          // Only updates the exp itself, as only the BG data might have changed.
          //ExperimentInspector.putExperimentIntoSessionExperimentBean( exp );
    }
View Full Code Here

   
    /*
     * This is a debug option, allowing experiments to be reset and re-run if they fail.
     */
    public String commandResetAfterFailure() {
          TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
          ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
          // Save these changes:
          Experiment exp = expBean.getExperiment();
          ExperimentImpl.resetToApprovedStage(exp);
          testbedMan.updateExperiment(exp);
        return "success";
    }
View Full Code Here

    * controller logic for handling the automated evaluation of an experiment
    * currently the workflow is hardcoded (Droid->XCDL)
    * @return
    */
   public String executeAutoEvalWf(){
       TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
      ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
       Experiment exp = expBean.getExperiment();
      
      expBean.setExecuteAutoEvalWfRunning(true);
      
       //call invocation on the evaluation workflow
       testbedMan.executeAutoEvaluationWf(exp);
        
       //update the data
       testbedMan.updateExperiment(exp);
      
         expBean.setExecuteAutoEvalWfRunning(false);
        
        NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
        return "success";
View Full Code Here

    return test+="1";
  }
   
  @Deprecated
    public String proceedToEvaluation() {
      TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      Experiment exp = expBean.getExperiment();
        if (exp.getExperimentExecution().isExecutionCompleted()) {
          exp.getExperimentExecution().setState(Experiment.STATE_COMPLETED);
          exp.getExperimentEvaluation().setState(Experiment.STATE_IN_PROGRESS);       
          expBean.setCurrentStage(ExperimentBean.PHASE_EXPERIMENTEVALUATION);
          initEvaluationBenchmarks(exp);
          testbedMan.updateExperiment(exp);
         
            NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
            return "success";
        } else
        return null;
View Full Code Here

        } else
        return null;
    }
 
  public String proceedToStep6Evaluation() {
      TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      Experiment exp = expBean.getExperiment();
      exp.getExperimentExecution().setState(Experiment.STATE_COMPLETED);
      exp.getExperimentEvaluation().setState(Experiment.STATE_IN_PROGRESS);       
      expBean.setCurrentStage(ExperimentBean.PHASE_EXPERIMENTEVALUATION);
      testbedMan.updateExperiment(exp);
        NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
        return "success";
    }
View Full Code Here

         Experiment exp = expBean.getExperiment();
         return exp.getExperimentExecutable();
    }

    public String saveEvaluation(){
      TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      Experiment exp = expBean.getExperiment();
      //exp.getExperimentExecution().setState(Experiment.STATE_COMPLETED);
      //exp.getExperimentEvaluation().setState(Experiment.STATE_IN_PROGRESS);
      //exp.getExperimentEvaluation().setState(Experiment.STATE_COMPLETED);
        testbedMan.updateExperiment(exp);
       
        NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
        return "success";
    }
View Full Code Here

          }
          if(removeMeasurement!=null){
            exptype.getManualObservables().get(stageName).remove(removeMeasurement);
          }
         
          TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        testbedMan.updateExperiment(expBean.getExperiment());
       
            log.info("Removed: "+targetBean.getIdentifier());
        } else {
            /*props.add(targetBean.getIdentifier().toString());
            log.info("Added: "+targetBean.getIdentifier());*/
 
View Full Code Here

         
        }
      }
     
      //store the updated experiment
        TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        testbedMan.updateExperiment(expBean.getExperiment());
         
    } catch (Exception e) {
      log.debug("error building Measurement from OntologyProperty",e);
    }
   
View Full Code Here

     
      //now create or update an MeasurementImpl record
      this.updateManualPropertyMeasurementRecord(manualpropID, inputDigoRef, stageName, c,value);
     
      //store the updated experiment
        TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        testbedMan.updateExperiment(expBean.getExperiment());
     
    }else{
      log.debug("not all required HtmlActionParameters we're sent along");
    }
   }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.TestbedManager

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.