public class SimpleParameterSet extends ParameterSet
ParameterSet that is constructed from an array of Parameters.ParameterSet.ParameterListerrorMessage, parameters, parent| Constructor and Description |
|---|
SimpleParameterSet(Parameter... parameters)
Creates a new
SimpleParameterSet from an array of Parameters. |
SimpleParameterSet(StringBuffer representation)
The standard constructor for the interface
Storable. |
| Modifier and Type | Method and Description |
|---|---|
SimpleParameterSet |
clone()
Creates a full clone (deep copy) of this
ParameterSet. |
void |
reset()
Resets all
Parameters in this ParameterSet to their
default values or null if not default value was provided. |
void |
toGalaxy(String namePrefix,
String configPrefix,
int depth,
StringBuffer descBuffer,
StringBuffer configBuffer,
boolean[] addLine)
Creates an Galaxy XML-representation of the parameters and appends it to
descBuffer
and variable configuration and appends it to configBuffer. |
fromGalaxy, fromXML, getAllParameterNames, getComment, getComment, getErrorMessage, getIndex, getName, getName, getNumberOfParameters, getParameterAt, getParameterForName, getParent, hasDefaultOrIsSet, initParameterList, initParameterList, isAtomic, isComparable, parametersLoaded, setParent, toGalaxy, toXMLpublic SimpleParameterSet(Parameter... parameters)
SimpleParameterSet from an array of Parameters.parameters - the parameterspublic SimpleParameterSet(StringBuffer representation) throws NonParsableException
Storable.
Constructs a SimpleParameterSet from its XML representation.representation - the XML representation as StringBufferNonParsableException - if the StringBuffer representation could not be parsedpublic SimpleParameterSet clone() throws CloneNotSupportedException
ParameterSetParameterSet. As a
convenience-method the user can use
fillWithStandardFieldsForClone(ParameterSet) on a newly
created instance of a subclass of ParameterSet to obtain a
clone/copy of all standard member variables (those already defined in
ParameterSet) in the passed ParameterSet. Using this
method, the cloning process becomes merely three-step:ParameterSet, most
likely with an empty constructor or the one taking just the instance
class.
this.fillWithStandardFieldsForClone on this
instance.
Object's method
Object.clone().clone in class ParameterSetParameterSetCloneNotSupportedExceptionpublic void reset()
ParameterSetParameters in this ParameterSet to their
default values or null if not default value was provided.reset in class ParameterSetParameter.reset()public void toGalaxy(String namePrefix, String configPrefix, int depth, StringBuffer descBuffer, StringBuffer configBuffer, boolean[] addLine) throws Exception
descBuffer
and variable configuration and appends it to configBuffer. The variable configuration
is also used to parse user-supplied values returned by Galaxy.namePrefix - the prefix of the variable name used in GalaxyconfigPrefix - the prefix for conditionalsdepth - the depth in the parameter hierarchy, used for graphical representation of nestingdescBuffer - the buffer for the parameter descriptionconfigBuffer - the buffer for the configuration lineaddLine - if true, a line is added before the title of a parameter with the corresponding indexException - if the conversion fails