Package eu.planets_project.tb.api

Examples of eu.planets_project.tb.api.TestbedManager


   
      //now create or update an EvaluationRecord
      this.updatePropertyEvaluationRecord(manualpropID, inputDigoRef, 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


     
      //TODO AL: not updating the evaluation records for every run - TBC
    }
   
    public String finalizeExperiment(){
      TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
        Experiment exp = expBean.getExperiment();
        exp.getExperimentEvaluation().setState(Experiment.STATE_COMPLETED);
        exp.setState(Experiment.STATE_COMPLETED);
        testbedMan.updateExperiment(exp);
        expBean.setCurrentStage(ExperimentBean.PHASE_EXPERIMENTFINALIZED)
       
        NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
        return "success";
    }
View Full Code Here

    }
   
   
    public void saveExperiment(){
      ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
      testbedMan.updateExperiment(expBean.getExperiment());
    }
View Full Code Here

         UserBean user = (UserBean)JSFUtil.getManagedObject("UserBean");
         exp.setUserRatingForExperiment(user.getUserid(), getUserExperimentRating());
         Double rating = exp.getUserRatingOfExperiment(user.getUserid());
         log.info("added community rating for the experiment: "+exp.getEntityID()+" from user: "+user.getUserid()+" name: "+user.getFullname()+" rating: "+rating);
        
         TestbedManager testbedMan = (TestbedManager) JSFUtil.getManagedObject("TestbedManager");
         testbedMan.updateExperiment(exp);
        
         //reset the rating
         userRating = Double.valueOf(0);
    }
View Full Code Here

   * Fetches the experiment's executable and extracts the InputData from it's execution
   * @return
   */
  private Collection<URI> getInputFileURIs(){
   
    TestbedManager manager = TestbedManagerImpl.getInstance(true);
    Experiment exp = manager.getExperiment(this.lExperimentIDRef);
    if(exp!=null){
      //contains the experiment's execution data
      ExperimentExecutable executable = exp.getExperimentExecutable();
      if(executable!=null){
        return executable.getAllInputHttpDataEntries();
View Full Code Here

   */
  @Deprecated
  private HashMap<String, BenchmarkGoal> getInputBenchmarkGoals(){
    HashMap<String,BenchmarkGoal> hmRet = new HashMap<String,BenchmarkGoal>();
    if(this.lExperimentIDRef!=-1){
      TestbedManager tbManager = TestbedManagerImpl.getInstance(true);
      //get the Experiment this phase belongs to
      Experiment thisExperiment = tbManager.getExperiment(this.lExperimentIDRef);
   
      List<BenchmarkGoal> inputBMGoals = thisExperiment.getExperimentSetup().getAllAddedBenchmarkGoals();
      if((inputBMGoals!=null)&&(inputBMGoals.size()>0)){
        Iterator<BenchmarkGoal> itBMGoals = inputBMGoals.iterator();
        while(itBMGoals.hasNext()){
View Full Code Here

   
    /* (non-Javadoc)
     * @see eu.planets_project.tb.api.model.ExperimentExecution#getMigrationOutputDataEntries()
     */
    public Collection<Map.Entry<URI,URI>> getMigrationOutputDataEntries(){
    TestbedManager manager = TestbedManagerImpl.getInstance(true);
    Experiment exp = manager.getExperiment(this.lExperimentIDRef);
    if(exp!=null){
      //contains the experiment's execution data
      ExperimentExecutable executable = exp.getExperimentExecutable();
      if(executable!=null){
        //get the migration experiment's results
View Full Code Here

    /* (non-Javadoc)
     * @see eu.planets_project.tb.api.model.ExperimentExecution#getMigrationOutputDataEntry(java.lang.String)
     */
    public Map.Entry<URI, URI> getMigrationOutputDataEntry(URI inputFileURI){
    TestbedManager manager = TestbedManagerImpl.getInstance(true);
    Experiment exp = manager.getExperiment(this.lExperimentIDRef);
    if(exp!=null){
      //contains the experiment's execution data
      ExperimentExecutable executable = exp.getExperimentExecutable();
      if(executable!=null){
        //check if requested inputFileURI is part of the execution input
View Full Code Here

   
    /* (non-Javadoc)
     * @see eu.planets_project.tb.api.model.ExperimentExecution#getCharacterisationOutputDataEntries()
     */
    public Collection<Map.Entry<URI, String>> getCharacterisationOutputDataEntries(){
      TestbedManager manager = TestbedManagerImpl.getInstance(true);
    Experiment exp = manager.getExperiment(this.lExperimentIDRef);
    if(exp!=null){
      //contains the experiment's execution data - this is fetched and returned
      ExperimentExecutable executable = exp.getExperimentExecutable();
      if(executable!=null){
        //get the characterisation experiment's results
View Full Code Here

   
    /* (non-Javadoc)
     * @see eu.planets_project.tb.api.model.ExperimentExecution#getCharacterisationOutputDataEntry(java.net.URI)
     */
    public Map.Entry<URI, String> getCharacterisationOutputDataEntry(URI inputFileURI){
      TestbedManager manager = TestbedManagerImpl.getInstance(true);
    Experiment exp = manager.getExperiment(this.lExperimentIDRef);
    if(exp!=null){
      //contains the experiment's execution data
      ExperimentExecutable executable = exp.getExperimentExecutable();
      if(executable!=null){
        //check if requested inputFileURI is part of the execution input
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.