Package eu.planets_project.tb.api.model

Examples of eu.planets_project.tb.api.model.ExperimentExecutable


     * of an experiment to the DB model.
     */
    public void saveExpTypeBean_Step2_WorkflowConfiguration_ToDBModel(){
    ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
        //store information in the db entities
    ExperimentExecutable expExecutable = expBean.getExperiment().getExperimentExecutable();
        //specify which batch processing system WEE or TB/Local we want to use for this experiment - default it's the old TB one.
        expExecutable.setBatchSystemIdentifier(BatchProcessor.BATCH_IDENTIFIER_TESTBED_LOCAL);
    }
View Full Code Here


      this.formality = props.isExperimentFormal();     
     
        //get already added TestbedServiceTemplate data
        log.debug("fill expBean: executable = "+exp.getExperimentExecutable());
        if(exp.getExperimentExecutable()!=null){
          ExperimentExecutable executable = exp.getExperimentExecutable();
          this.selSerTemplate = executable.getServiceTemplate();
          if( selSerTemplate != null )
              this.sSelSerTemplateID = selSerTemplate.getUUID();
          this.sSelSerOperationName = executable.getSelectedServiceOperationName();
          this.bOperationSelectionCompleted = true;
          helperLoadInputData(executable.getInputData());
          if(executable.isExecutionSuccess()){
            //uses the executable to get the data
              this.outputData = exp.getExperimentExecutable().getOutputDataEntries();
          }
        }
    
View Full Code Here

   
    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();
      }
    }
   
    return new Vector<URI>();
  }
View Full Code Here

    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
        return executable.getMigrationHttpDataEntries();
      }
    }
    return null;
  }
View Full Code Here

    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
        boolean bContains = executable.getAllInputHttpDataEntries().contains(inputFileURI);
        if(bContains){
          //find the matching entry
          Iterator<Entry<URI,URI>> itEntry = executable.getMigrationHttpDataEntries().iterator();
          while(itEntry.hasNext()){
            Entry<URI,URI> entry = itEntry.next();
            //check if we've found the matchin inputFileURI
            if(entry.getKey().equals(inputFileURI)){
              //build return value Map and then Entry
View Full Code Here

    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
        return executable.getCharacterisationHttpDataEntries();
      }
    }
    return null;
    }
View Full Code Here

    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
        boolean bContains = executable.getAllInputHttpDataEntries().contains(inputFileURI);
        if(bContains){
          //find the matching entry
          Iterator<Entry<URI,String>> itEntry = executable.getCharacterisationHttpDataEntries().iterator();
          while(itEntry.hasNext()){
            Entry<URI,String> entry = itEntry.next();
            //check if we've found the matchin inputFileURI
            if(entry.getKey().equals(inputFileURI)){
              //build return value Map and then Entry
View Full Code Here

    Collection<URI> ret = new Vector<URI>();
    TestbedManager manager = TestbedManagerImpl.getInstance(true);
    Experiment exp = manager.getExperiment(this.lExperimentIDRef);
    if(exp!=null && exp.getExperimentExecutable().getOutputData() != null){
      //contains the experiment's execution data
      ExperimentExecutable executable = exp.getExperimentExecutable();
      if(executable!=null){
        //get the Migration's output data (as URI)
        return executable.getAllMigrationOutputHttpData();
      }
    }
    return ret;
  }
View Full Code Here

    Collection<String> ret = new Vector<String>();
    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 Characterisation's output data (as URI)
        return executable.getAllCharacterisationOutputHttpData();
      }
    }
    return ret;
  }
View Full Code Here

  public Calendar getExecutionStartedDate(){
    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.getExecutionStartDate();
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.model.ExperimentExecutable

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.