Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@
public interface Pipeline {

/**
* Get the settings of File inputs.
* @return A dictionary containing the FQN-value mappings.
* Get the settings of Task inputs.
*/
Map<String, PiperValue> getDatasets();
Map<String, PiperValue> getInputs();

/**
* Get the settings of Task outputs.
*/
Map<String, PiperValue> getOutputs();

/**
* Get the settings of a pipeline task.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@


import com.atgenomix.seqslab.piper.tags.DeveloperApi;
import com.google.gson.JsonObject;

import java.util.List;

/**
* An interface represents the localization, computation, and delocalization workload processes
Expand All @@ -26,4 +29,10 @@
*/
@DeveloperApi
public interface PipelineTask {

/**
* Get the list of Operators applied on given input or output FQN.
* @return a list of JsonObject
*/
public JsonObject[] getOperators();
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,21 @@ public Map<String, String> getConf() {
}

/**
* Obtain the dataset object value of an input variable identified by fully-qualified name.
* Obtain the piper value of an input variable identified by fully-qualified name.
* @param fqn The fully-qualified name of an input variable, e.g. myworkflow.task.ref.
* @return The dataset object value or null if not found.
* @return The piper value or null if not found.
*/
public PiperValue getDataset(String fqn) {
return pipeline.getDatasets().get(fqn);
public PiperValue getInput(String fqn) {
return pipeline.getInputs().get(fqn);
}

/**
* Obtain the piper value of an output variable identified by fully-qualified name.
* @param fqn The fully-qualified name of an output variable, e.g. myworkflow.task.ref.
* @return The piper value or null if not found.
*/
public PiperValue getOutput(String fqn) {
return pipeline.getOutputs().get(fqn);
}

/**
Expand Down
Loading