compbio.metadata
Class Preset<T>
java.lang.Object
compbio.metadata.Preset<T>
- Type Parameters:
T
- executable type
public class Preset<T>
- extends Object
Collection of Options and Parameters with their values
- Version:
- 1.0 December 2009
- Author:
- pvtroshin
- See Also:
Option
,
Parameter
Preset
public Preset()
setOptions
public void setOptions(List<String> option)
setName
public void setName(String name)
setDescription
public void setDescription(String description)
getOptions
public List<String> getOptions()
- Returns:
- a List of Options as a String
getName
public String getName()
- Returns:
- - name of the Preset
getDescription
public String getDescription()
- Returns:
- - a long description of the Preset
getArguments
public List<Option<T>> getArguments(RunnerConfig<T> rconfig)
throws WrongParameterException
- Converts list of options as String to type Option
- Parameters:
rconfig
-
- Returns:
- List of Options
- Throws:
WrongParameterException
- if the value of the parameter is invalid @see
Parameter
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object