|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.task.MultiOutputTask
public abstract class MultiOutputTask
Task which writes multiple tables to a single output file.
Concrete subclasses must implement the
createTableSequence(uk.ac.starlink.task.Environment)
method.
Constructor Summary | |
---|---|
protected |
MultiOutputTask(String purpose)
Constructor. |
Method Summary | |
---|---|
Executable |
createExecutable(Environment env)
Creates an executable object which will do the work of this task in the given Environment. |
protected abstract TableSequence |
createTableSequence(Environment env)
Interrogates the environment to produce a sequence of tables which will be written as the output of this task. |
static TableSequence |
createTableSequence(InputTableSpec[] inSpecs)
Constructs a table sequence based on an array of input table specifications. |
protected List<Parameter> |
getParameterList()
Returns the parameter list for this task; it may be modified. |
Parameter[] |
getParameters()
Returns the list of parameters which may be used by this task. |
String |
getPurpose()
Returns a short (one-line) description of the purpose of this task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MultiOutputTask(String purpose)
purpose
- task purposeMethod Detail |
---|
public String getPurpose()
Task
getPurpose
in interface Task
public Parameter[] getParameters()
Task
getParameters
in interface Task
protected List<Parameter> getParameterList()
protected abstract TableSequence createTableSequence(Environment env) throws TaskException
env
- execution environment
TaskException
public Executable createExecutable(Environment env) throws TaskException
Task
env
, though this is not
absolutely prohibited.
createExecutable
in interface Task
env
- the environment in which the task will operate
TaskException
- if no executable can be created;
this should usually be a UsageException
or
some subclasspublic static TableSequence createTableSequence(InputTableSpec[] inSpecs) throws TaskException
inSpecs
- array of input tables
TaskException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |