Class InputPortsBuilder
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.InputPortsBuilder
This class allow to easily create input ports for a step.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPort(String name, boolean list, DataFormat format) Add an input port.addPort(String name, boolean list, DataFormat format, boolean requiredInWorkingDirectory) Add an input port.addPort(String name, boolean list, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted) Add an input port.addPort(String name, boolean list, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted, boolean requiredInWorkingDirectory) Add an input port.addPort(String name, DataFormat format) Add an input port.addPort(String name, DataFormat format, boolean requiredInWorkingDirectory) Add an input port.addPort(String name, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted) Add an input port.addPort(String name, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted, boolean requiredInWorkingDirectory) Add an input port.static InputPortsallPortsRequiredInWorkingDirectory(InputPorts inputPorts) Set all ports of an existing input ports to be required in working directory.static InputPortscopy(InputPorts ports) Convenient method to create a defensive copy of an InputPorts object.create()Create the ports.static InputPortsCreate the ports with no ports.static InputPortssingleInputPort(DataFormat format) Convenient method to create the ports with only one port.static InputPortssingleInputPort(String name, DataFormat format) Convenient method to create the ports with only one port.
-
Field Details
-
DEFAULT_SINGLE_INPUT_PORT_NAME
Default single input port name.- See Also:
-
-
Constructor Details
-
InputPortsBuilder
public InputPortsBuilder()
-
-
Method Details
-
addPort
Add an input port.- Parameters:
name- name of the portformat- format of the port- Returns:
- the instance of the builder
-
addPort
Add an input port.- Parameters:
name- name of the portlist- true if a list is excepted as port valueformat- format of the port- Returns:
- the instance of the builder
-
addPort
public InputPortsBuilder addPort(String name, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted) Add an input port.- Parameters:
name- name of the portformat- format of the portcompressionsAccepted- compression accepted- Returns:
- the instance of the builder
-
addPort
public InputPortsBuilder addPort(String name, boolean list, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted) Add an input port.- Parameters:
name- name of the portlist- true if a list is excepted as port valueformat- format of the portcompressionsAccepted- compression accepted- Returns:
- the instance of the builder
-
addPort
public InputPortsBuilder addPort(String name, DataFormat format, boolean requiredInWorkingDirectory) Add an input port.- Parameters:
name- name of the portformat- format of the portrequiredInWorkingDirectory- if data is required in working directory- Returns:
- the instance of the builder
-
addPort
public InputPortsBuilder addPort(String name, boolean list, DataFormat format, boolean requiredInWorkingDirectory) Add an input port.- Parameters:
name- name of the portlist- true if a list is excepted as port valueformat- format of the portrequiredInWorkingDirectory- if data is required in working directory- Returns:
- the instance of the builder
-
addPort
public InputPortsBuilder addPort(String name, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted, boolean requiredInWorkingDirectory) Add an input port.- Parameters:
name- name of the portformat- format of the portcompressionsAccepted- compression acceptedrequiredInWorkingDirectory- if data is required in working directory- Returns:
- the instance of the builder
-
addPort
public InputPortsBuilder addPort(String name, boolean list, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted, boolean requiredInWorkingDirectory) Add an input port.- Parameters:
name- name of the portlist- true if a list is excepted as port valueformat- format of the portcompressionsAccepted- compression acceptedrequiredInWorkingDirectory- if data is required in working directory- Returns:
- the instance of the builder
-
create
Create the ports.- Returns:
- a new InputPorts object
-
noInputPort
Create the ports with no ports.- Returns:
- a new InputPorts object
-
singleInputPort
Convenient method to create the ports with only one port.- Parameters:
format- format of the port- Returns:
- a new InputPorts object
-
singleInputPort
Convenient method to create the ports with only one port.- Parameters:
name- of the portformat- data format- Returns:
- a new InputPorts object
-
allPortsRequiredInWorkingDirectory
Set all ports of an existing input ports to be required in working directory.- Parameters:
inputPorts- original input ports- Returns:
- a new InputPorts object that ports data are required in working directory
-
copy
Convenient method to create a defensive copy of an InputPorts object.- Parameters:
ports- an existing OutputPorts object- Returns:
- a new InputPorts object or null if the ports parameter is null
-