uk.ac.starlink.ttools.task
Class ShowFunctions

java.lang.Object
  extended by uk.ac.starlink.ttools.task.ShowFunctions
All Implemented Interfaces:
Executable, Task

public class ShowFunctions
extends Object
implements Task, Executable

Task for browsing available algebraic functions.

Since:
9 Feb 2007
Author:
Mark Taylor

Constructor Summary
ShowFunctions()
           
 
Method Summary
 Executable createExecutable(Environment env)
          Creates an executable object which will do the work of this task in the given Environment.
 void execute()
          Performs the work defined by this object.
 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

ShowFunctions

public ShowFunctions()
Method Detail

getPurpose

public String getPurpose()
Description copied from interface: Task
Returns a short (one-line) description of the purpose of this task.

Specified by:
getPurpose in interface Task
Returns:
plain text description of this task's purpose

getParameters

public Parameter[] getParameters()
Description copied from interface: Task
Returns the list of parameters which may be used by this task.

Specified by:
getParameters in interface Task
Returns:
an array of the Parameter objects this task may request values for during its invocation

createExecutable

public Executable createExecutable(Environment env)
Description copied from interface: Task
Creates an executable object which will do the work of this task in the given Environment. This method should do all of the parameter processing and prepare an object which just executes. The idea is that any communication with the user related to the supplied parameter values can be done before the task starts to execute in earnest. Consequently, the returned Executable object ought not to make any reference to env, though this is not absolutely prohibited.

Specified by:
createExecutable in interface Task
Parameters:
env - the environment in which the task will operate

execute

public void execute()
Description copied from interface: Executable
Performs the work defined by this object.

Specified by:
execute in interface Executable


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