Class PathRequirement
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
-
- fr.ens.biologie.genomique.eoulsan.requirements.PathRequirement
-
- All Implemented Interfaces:
Requirement
public class PathRequirement extends AbstractRequirement
This class define a executable requirement.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUIREMENT_NAME-
Fields inherited from class fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
INSTALLABLE_PARAMETER, NAME_PARAMETER, OPTIONAL_PARAMETER
-
-
Constructor Summary
Constructors Constructor Description PathRequirement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Set<Parameter> parameters)Configure the requirement.StringgetName()The name of the requirement.Set<Parameter>getParameters()Get the parameters of the requirementvoidinstall(Progress progress)Install the requirement.booleanisAvailable()Test if the requirement is available.static RequirementnewPathRequirement(String executableName)Create a new mandatory executable requirement.static RequirementnewPathRequirement(String executableName, boolean optional)Create a new executable requirement.StringtoString()-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
isInstallable, isOptional, setInstallable, setOptionnal
-
-
-
-
Field Detail
-
REQUIREMENT_NAME
public static final String REQUIREMENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:RequirementThe name of the requirement.- Returns:
- the name of the requirement
-
configure
public void configure(Set<Parameter> parameters) throws EoulsanException
Description copied from interface:RequirementConfigure the requirement.- Specified by:
configurein interfaceRequirement- Overrides:
configurein classAbstractRequirement- Parameters:
parameters- the parameters of the requirement- Throws:
EoulsanException- if an error occurs while configuring the requirement
-
getParameters
public Set<Parameter> getParameters()
Description copied from interface:RequirementGet the parameters of the requirement- Specified by:
getParametersin interfaceRequirement- Overrides:
getParametersin classAbstractRequirement- Returns:
- a set of parameters
-
isAvailable
public boolean isAvailable()
Description copied from interface:RequirementTest if the requirement is available.- Returns:
- true if he requirement is optional
-
install
public void install(Progress progress) throws EoulsanException
Description copied from interface:RequirementInstall the requirement.- Throws:
EoulsanException- if the requirement cannot be installed
-
newPathRequirement
public static Requirement newPathRequirement(String executableName)
Create a new mandatory executable requirement.- Parameters:
executableName- the executable name- Returns:
- a new PathRequirement object
-
newPathRequirement
public static Requirement newPathRequirement(String executableName, boolean optional)
Create a new executable requirement.- Parameters:
executableName- the executable nameoptional- true if the executable is a mandatory requirement- Returns:
- a new PathRequirement object
-
-