All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencb.opencga.test.execution.models.DatasetExecutionPlan Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package org.opencb.opencga.test.execution.models;

import org.opencb.commons.utils.PrintUtils;
import org.opencb.opencga.test.config.Environment;

import java.util.List;

public class DatasetExecutionPlan {


    /* Environment configuration */
    private Environment environment;

    /* Map with input fastq file name as key and list of commands for this filename as value */
    private List datasetExecutionFiles;


    public DatasetExecutionPlan(Environment environment) {
        this.environment = environment;

    }

    public void simulate() {
        PrintUtils.println(environment.getId(), PrintUtils.Color.YELLOW);
        for (DatasetExecutionFile executionFile : datasetExecutionFiles) {
            PrintUtils.println("    " + executionFile.getInputFilename(), PrintUtils.Color.GREEN);
            for (DataSetExecutionCommand command : executionFile.getCommands()) {
                PrintUtils.println("    " + command.getCommandLine(), PrintUtils.Color.WHITE);
            }
        }
    }

    public Environment getEnvironment() {
        return environment;
    }

    public DatasetExecutionPlan setEnvironment(Environment environment) {
        this.environment = environment;
        return this;
    }

    public List getDatasetExecutionFiles() {
        return datasetExecutionFiles;
    }

    public DatasetExecutionPlan setDatasetExecutionFiles(List datasetExecutionFiles) {
        this.datasetExecutionFiles = datasetExecutionFiles;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy