Class PathRequirement
java.lang.Object
fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
fr.ens.biologie.genomique.eoulsan.requirements.PathRequirement
- All Implemented Interfaces:
Requirement
This class define a executable requirement.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Field Summary
FieldsFields inherited from class fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
NAME_PARAMETER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure the requirement.getName()The name of the requirement.Get the parameters of the requirementvoidInstall the requirement.booleanTest 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.toString()Methods inherited from class fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
isInstallable, isOptional
-
Field Details
-
REQUIREMENT_NAME
- See Also:
-
-
Constructor Details
-
PathRequirement
public PathRequirement()
-
-
Method Details
-
getName
Description copied from interface:RequirementThe name of the requirement.- Returns:
- the name of the requirement
-
configure
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
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
Description copied from interface:RequirementInstall the requirement.- Parameters:
progress- Progress object- Throws:
EoulsanException- if the requirement cannot be installed
-
newPathRequirement
Create a new mandatory executable requirement.- Parameters:
executableName- the executable name- Returns:
- a new PathRequirement object
-
newPathRequirement
Create a new executable requirement.- Parameters:
executableName- the executable nameoptional- true if the executable is a mandatory requirement- Returns:
- a new PathRequirement object
-
toString
-