uk.ac.starlink.ttools.task
Class FixedMapperTask

java.lang.Object
  extended by uk.ac.starlink.ttools.task.ConsumerTask
      extended by uk.ac.starlink.ttools.task.MapperTask
          extended by uk.ac.starlink.ttools.task.FixedMapperTask
All Implemented Interfaces:
uk.ac.starlink.task.Task
Direct Known Subclasses:
SkyMatch2, TableCat2, TableMatch2

public class FixedMapperTask
extends MapperTask

MapperTask 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:
14 Sep 2006
Author:
Mark Taylor

Constructor Summary
FixedMapperTask(String purpose, ProcessingMode outMode, boolean useOutFilter, TableMapper mapper, int nIn, boolean useInFilters)
          Constructor.
 
Method Summary
protected  InputTableSpec[] getInputSpecs(uk.ac.starlink.task.Environment env)
          Returns an array of InputTableSpec objects describing the input tables used by this task.
 
Methods inherited from class uk.ac.starlink.ttools.task.MapperTask
createProducer, getMapper
 
Methods inherited from class uk.ac.starlink.ttools.task.ConsumerTask
createExecutable, createProducer, getOutputMode, getParameterList, getParameters, getPurpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedMapperTask

public FixedMapperTask(String purpose,
                       ProcessingMode outMode,
                       boolean useOutFilter,
                       TableMapper mapper,
                       int nIn,
                       boolean useInFilters)
Constructor.

Parameters:
purpose - one-line description of the purpose of the task
outMode - processing mode which determines the destination of the processed table
useOutFilter - allow specification of filters for output table
mapper - object which defines mapping transformation
nIn - number of input tables
useInFilters - whether to use input filter parameters
Method Detail

getInputSpecs

protected InputTableSpec[] getInputSpecs(uk.ac.starlink.task.Environment env)
                                  throws uk.ac.starlink.task.TaskException
Description copied from class: MapperTask
Returns an array of InputTableSpec objects describing the input tables used by this task.

Specified by:
getInputSpecs in class MapperTask
Parameters:
env - execution environment
Returns:
input table specifiers
Throws:
uk.ac.starlink.task.TaskException


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