Package org.ogce.expbuilder.model

Examples of org.ogce.expbuilder.model.Experiment


    FacesContext facesContext = FacesContext.getCurrentInstance();
    if (facesContext != null) {
      Application application = facesContext.getApplication();
      ExperimentBean bean = ((ExperimentBean) application.createValueBinding("#{experiment}").getValue(facesContext));
    try {
      Experiment bean2 = new Experiment();
      this.setExperimentID(bean.getExpName() + UUID.randomUUID());
      bean2.setId(getExperimentID());
      bean2.setName(bean.getExpName());
      bean2.setDescription(bean.getDescription());
      super.getContext().getExpBuilderManager().createExperiment(
          bean.getProjectName(), bean2, workflow);
      this.setWorkflowID(workflow.getName() + UUID.randomUUID());
      workflow.getWorkflow().setExperimentId(getExperimentID());
      workflow.getWorkflow().setWorkflowInstanceId(new URI(getWorkflowID()));
View Full Code Here


   
      DocData[] docType = context.getRegistryClient().findOGCEResource("",
          ResourceType.Experiment.toString(),
          ParentTypedID.getParentTypedID(ResourceType.Project, projectID));
    for (DocData docData : docType) {
      Experiment experiment = new Experiment();
      experiment.setId(docData.resourceID.toString());
      experiment.setName(docData.resourcename);
      experiment.setDescription(docData.resourcedesc);
      experiment.setCreationTime(docData.created.getTime());
      experimentsList.add(experiment);
    }
     
      if (experimentsList.size() > 0) {
        experiments = experimentsList.toArray(new Experiment[0]);
View Full Code Here

TOP

Related Classes of org.ogce.expbuilder.model.Experiment

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.