Examples of Experiment


Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

          generator.setParameter(ExperimentConstants.PROJECT_NAME, name);
          Query q = generator.selectQuery(em);
            List<?> results = q.getResultList();
            if (results.size() != 0) {
                for (Object result : results) {
                    Experiment experiment = (Experiment) result;
                    ExperimentResource experimentResource = (ExperimentResource)
                            Utils.getResource(ResourceType.EXPERIMENT, experiment);
                    resourceList.add(experimentResource);
                }
            }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            Experiment_Input exInput = new Experiment_Input();
            exInput.setEx_key(experimentKey);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            exInput.setExperiment(experiment);
            exInput.setExperiment_id(experiment.getExpId());
            if (value != null){
                exInput.setValue(value.toCharArray());
            }
            exInput.setInputType(inputType);
            exInput.setMetadata(metadata);

            if (existingInput != null) {
                existingInput.setEx_key(experimentKey);
                existingInput.setExperiment(experiment);
                existingInput.setExperiment_id(experiment.getExpId());
                if (value != null){
                    existingInput.setValue(value.toCharArray());
                }
                existingInput.setInputType(inputType);
                existingInput.setMetadata(metadata);
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            Experiment_Output exOutput = new Experiment_Output();
            exOutput.setEx_key(experimentKey);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            exOutput.setExperiment(experiment);
            exOutput.setExperiment_id(experiment.getExpId());
            if (value != null){
                exOutput.setValue(value.toCharArray());
            }
            exOutput.setOutputKeyType(outputType);
            exOutput.setMetadata(metadata);

            if (existingOutput != null) {
                existingOutput.setEx_key(experimentKey);
                existingOutput.setExperiment(experiment);
                if (value != null){
                    existingOutput.setValue(value.toCharArray());
                }
                existingOutput.setExperiment_id(experiment.getExpId());
                existingOutput.setOutputKeyType(outputType);
                existingOutput.setMetadata(metadata);
                exOutput = em.merge(existingOutput);
            } else {
                em.persist(exOutput);
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            Experiment_Input exInput = new Experiment_Input();
            exInput.setEx_key(experimentKey);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            exInput.setExperiment(experiment);
            exInput.setExperiment_id(experiment.getExpId());
            exInput.setValue(value);
            exInput.setInputType(inputType);
            exInput.setMetadata(metadata);

            if (existingInput != null) {
                existingInput.setEx_key(experimentKey);
                existingInput.setExperiment(experiment);
                existingInput.setExperiment_id(experiment.getExpId());
                existingInput.setValue(value);
                existingInput.setInputType(inputType);
                existingInput.setMetadata(metadata);
                exInput = em.merge(existingInput);
            } else {
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

        EntityManager em = null;
        try {
            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            QosParam qosParam = new QosParam();
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                qosParam.setTaskId(taskDetailResource.getTaskId());
                qosParam.setTask(taskDetail);
            }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

        try {
            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            ErrorDetail errorDetail = new ErrorDetail();
            errorDetail.setErrorID(errorId);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            errorDetail.setExperiment(experiment);
            errorDetail.setExpId(experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                errorDetail.setTask(taskDetail);
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

                scheduling = em.find(Computational_Resource_Scheduling.class, schedulingId);
                scheduling.setSchedulingId(schedulingId);
            } else {
                scheduling = new Computational_Resource_Scheduling();
            }
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            if (taskDetailResource != null) {
                TaskDetail taskDetail = em.find(TaskDetail.class, taskDetailResource.getTaskId());
                scheduling.setTask(taskDetail);
                scheduling.setTaskId(taskDetailResource.getTaskId());
            }
View Full Code Here

Examples of org.apache.airavata.persistance.registry.jpa.model.Experiment

            em = ResourceUtils.getEntityManager();
            em.getTransaction().begin();
            Experiment_Output exOutput = new Experiment_Output();
            exOutput.setEx_key(experimentKey);
            Experiment experiment = em.find(Experiment.class, experimentResource.getExpID());
            exOutput.setExperiment(experiment);
            exOutput.setExperiment_id(experiment.getExpId());
            exOutput.setValue(value);
            exOutput.setOutputKeyType(outputType);
            exOutput.setMetadata(metadata);

            if (existingOutput != null) {
                existingOutput.setEx_key(experimentKey);
                existingOutput.setExperiment(experiment);
                existingOutput.setValue(value);
                existingOutput.setExperiment_id(experiment.getExpId());
                existingOutput.setOutputKeyType(outputType);
                existingOutput.setMetadata(metadata);
                exOutput = em.merge(existingOutput);
            } else {
                em.persist(exOutput);
View Full Code Here

Examples of org.lilian.experiment.Experiment

      else if(type == Type.RDFXML)
        graph = Resources.rdfGraph(data);
      else if(type == Type.TURTLE)
        graph = Resources.turtleGraph(data);
       
      Experiment experiment = new GraphMeasures<String>(graph, size);
     
      Environment env = new Environment(environment, 0);
      Environment.current = env;
     
      env.addTag("narrow");
     
      experiment.run();  
     
      Global.log().info("App Finished");
    }
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.