Package org.apache.airavata.model.workspace.experiment

Examples of org.apache.airavata.model.workspace.experiment.ExperimentSummary


        return null;
    }

    public static ExperimentSummary getExperimentSummary(ExperimentResource experimentResource) throws RegistryException {
        if (experimentResource != null){
            ExperimentSummary experimentSummary = new ExperimentSummary();
            if (experimentResource.getProject()!= null){
                experimentSummary.setProjectID(experimentResource.getProject().getId());
            }
            experimentSummary.setExperimentID(experimentResource.getExpID());
            experimentSummary.setCreationTime(experimentResource.getCreationTime().getTime());
            experimentSummary.setUserName(experimentResource.getExecutionUser());
            experimentSummary.setName(experimentResource.getExpName());
            experimentSummary.setDescription(experimentResource.getDescription());
            experimentSummary.setApplicationId(experimentResource.getApplicationId());
            StatusResource experimentStatus = experimentResource.getExperimentStatus();
            if (experimentStatus != null){
                experimentSummary.setExperimentStatus(getExperimentStatus(experimentStatus));
            }
            List<ErrorDetailResource> errorDetails = experimentResource.getErrorDetails();
            if (errorDetails!= null && !errorDetails.isEmpty()){
                experimentSummary.setErrors(getErrorDetailList(errorDetails));
            }
            return experimentSummary;
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.model.workspace.experiment.ExperimentSummary

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.