public class VariableTablesInput extends Object implements TablesInput
This object constructs its list of parameters on the fly when the
environment is available (within getInputSpecs(uk.ac.starlink.task.Environment)
).
The getParameters()
method returns a list which is suitable
for documentation purposes only.
Execution environments which need the getParameters
call to return the actual list of parameters to be used may not
therefore be able to work with instances of this class.
Modifier and Type | Field and Description |
---|---|
static String |
NUM_SUFFIX
Suffix applied to parameters to denote a symbolic variable part of
the name, where the symbolic part can take integer values.
|
Constructor and Description |
---|
VariableTablesInput(boolean useInFilters)
Constructs an input tables parameter with a default base name.
|
VariableTablesInput(boolean useInFilters,
String inName,
String inWord)
Constructs an input tables parameter with a given base name.
|
Modifier and Type | Method and Description |
---|---|
FilterParameter |
createFilterParameter(String label)
Constructs an input filter parameter with a given distinguishing label.
|
InputTableParameter |
createInputParameter(String label)
Constructs an input table parameter with a given distinguishing label.
|
IntegerParameter |
getCountParam()
Returns the parameter which contains the number of input tables that
the user wants to use.
|
FilterParameter |
getFilterParameter(int i)
Returns a parameter used for acquiring an input filter for
one of the numbered input tables.
|
InputTableSpec[] |
getInputSpecs(Environment env)
Returns an array of InputTableSpec objects describing the input tables
used by this task.
|
InputTableParameter |
getInputTableParameter(int i)
Returns a parameter used for acquiring one of the numbered input tables.
|
Parameter<?>[] |
getParameters()
Returns the parameters associated with this object.
|
public static final String NUM_SUFFIX
public VariableTablesInput(boolean useInFilters)
useInFilters
- whether to use input filter parameterspublic VariableTablesInput(boolean useInFilters, String inName, String inWord)
useInFilters
- whether to use input filter parametersinName
- base name for parameterinWord
- base word describing parameter content for textual
descriptionspublic IntegerParameter getCountParam()
public Parameter<?>[] getParameters()
TablesInput
getParameters
in interface TablesInput
public InputTableSpec[] getInputSpecs(Environment env) throws TaskException
TablesInput
getInputSpecs
in interface TablesInput
env
- execution environmentTaskException
public InputTableParameter getInputTableParameter(int i)
TablesInput
Behaviour is undefined if you ask for a table index not applicable to this input.
getInputTableParameter
in interface TablesInput
i
- table index (0-based)public FilterParameter getFilterParameter(int i)
TablesInput
Behaviour is undefined if you ask for a table index not applicable to this input.
getFilterParameter
in interface TablesInput
i
- table index (0-based)public InputTableParameter createInputParameter(String label)
label
- input identifier - typically "1", "2", etcpublic FilterParameter createFilterParameter(String label)
label
- input identifier - typically "1", "2", etcCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.