public abstract class ConsumerTask extends Object implements uk.ac.starlink.task.Task
Constructor and Description |
---|
ConsumerTask(String purpose,
ProcessingMode outMode,
boolean useOutFilter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
uk.ac.starlink.task.Executable |
createExecutable(uk.ac.starlink.task.Environment env) |
abstract TableProducer |
createProducer(uk.ac.starlink.task.Environment env)
Returns an object which can produce the effective output table which
will be consumed by this task.
|
static TableProducer |
createProducer(uk.ac.starlink.task.Environment env,
FilterParameter filterParam,
InputTableParameter inParam)
Constructs a table producer given an input parameter and an
input filter parameter.
|
static String |
getIdentity(uk.ac.starlink.table.StarTable table)
Returns an identification string for a table that has been produced
by the TableProducer from this class's
createProducer(uk.ac.starlink.task.Environment) method. |
ProcessingMode |
getOutputMode()
Returns this task's output mode.
|
protected List<uk.ac.starlink.task.Parameter<?>> |
getParameterList()
Returns the parameter list for this task; it may be modified.
|
uk.ac.starlink.task.Parameter<?>[] |
getParameters() |
String |
getPurpose() |
public ConsumerTask(String purpose, ProcessingMode outMode, boolean useOutFilter)
purpose
- one-line description of the taskoutMode
- processing mode which determines the destination of
the processed tableuseOutFilter
- allow specification of filters for output tablepublic String getPurpose()
getPurpose
in interface uk.ac.starlink.task.Task
public uk.ac.starlink.task.Parameter<?>[] getParameters()
getParameters
in interface uk.ac.starlink.task.Task
protected List<uk.ac.starlink.task.Parameter<?>> getParameterList()
public abstract TableProducer createProducer(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
getIdentity(uk.ac.starlink.table.StarTable)
method.env
- execution environmentuk.ac.starlink.task.TaskException
public uk.ac.starlink.task.Executable createExecutable(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
createExecutable
in interface uk.ac.starlink.task.Task
uk.ac.starlink.task.TaskException
public ProcessingMode getOutputMode()
public static TableProducer createProducer(uk.ac.starlink.task.Environment env, FilterParameter filterParam, InputTableParameter inParam) throws uk.ac.starlink.task.TaskException
env
- execution environmentfilterParam
- parameter giving filter steps (or null)inParam
- parameter giving input tableuk.ac.starlink.task.TaskException
public static String getIdentity(uk.ac.starlink.table.StarTable table)
createProducer(uk.ac.starlink.task.Environment)
method.
This string amalgamates the table location and any filters applied
to produce it, so it should be usable elsewhere, including
in unrelated JVMs, to identify a table.table
- input table produced by this taskCopyright © 2022 Central Laboratory of the Research Councils. All Rights Reserved.