Package uk.ac.starlink.ttools.task
Class ChoiceMode
- java.lang.Object
-
- uk.ac.starlink.ttools.task.ChoiceMode
-
- All Implemented Interfaces:
ProcessingMode
public class ChoiceMode extends java.lang.Object implements ProcessingMode
Output mode which can be used to give the user, via the parameter system, the choice about what mode to use. This mode is not intended for use as one amongst many, but as the only ProcessingMode for a processing sequence, for instance as the parameter to theConsumerTaskconstructor.Note: that use of this mode is used by the
JyStiltsscript to identify tasks whose primary output is a table, so that such tables can by default be returned to the jython environment rather than serialised to output files.- Since:
- 3 May 2006
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description ChoiceMode()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableConsumercreateConsumer(uk.ac.starlink.task.Environment env)Creates a TableConsumer, deriving any additional required configuration from a given environment.uk.ac.starlink.task.Parameter<?>[]getAssociatedParameters()Returns a list of any parameters which are associated with this mode.java.lang.StringgetDescription()Returns a textual description of this processing mode.
-
-
-
Method Detail
-
getAssociatedParameters
public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
Description copied from interface:ProcessingModeReturns a list of any parameters which are associated with this mode.- Specified by:
getAssociatedParametersin interfaceProcessingMode- Returns:
- parameter list
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ProcessingModeReturns a textual description of this processing mode. This will be included in the user document so should be in XML.- Specified by:
getDescriptionin interfaceProcessingMode- Returns:
- textual description of this mode
-
createConsumer
public TableConsumer createConsumer(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
Description copied from interface:ProcessingModeCreates a TableConsumer, deriving any additional required configuration from a given environment.- Specified by:
createConsumerin interfaceProcessingMode- Parameters:
env- execution environment- Throws:
uk.ac.starlink.task.TaskException
-
-