uk.ac.starlink.ttools.task
Class FixedTablesInput

java.lang.Object
  extended by uk.ac.starlink.ttools.task.FixedTablesInput
All Implemented Interfaces:
TablesInput

public class FixedTablesInput
extends Object
implements TablesInput

TablesInput which has a fixed number of input tables. Each input table gets its own numbered table parameter and (if requested) filter parameter - in1, in2, in3, ... and icmd1, icmd2, icmd3, ...

Since:
1 Jul 2010
Author:
Mark Taylor

Constructor Summary
FixedTablesInput(int nIn, boolean useInFilters)
          Constructor.
 
Method Summary
 InputTableSpec[] getInputSpecs(Environment env)
          Returns an array of InputTableSpec objects describing the input tables used by this task.
 Parameter[] getParameters()
          Returns the parameters associated with this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedTablesInput

public FixedTablesInput(int nIn,
                        boolean useInFilters)
Constructor.

Parameters:
nIn - number of input tables
useInFilters - whether to use input filter parameters
Method Detail

getParameters

public Parameter[] getParameters()
Description copied from interface: TablesInput
Returns the parameters associated with this object.

Specified by:
getParameters in interface TablesInput
Returns:
parameters

getInputSpecs

public InputTableSpec[] getInputSpecs(Environment env)
                               throws TaskException
Description copied from interface: TablesInput
Returns an array of InputTableSpec objects describing the input tables used by this task.

Specified by:
getInputSpecs in interface TablesInput
Parameters:
env - execution environment
Returns:
input table specifiers
Throws:
TaskException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.