Class HelloWorld<S extends InputFromManager>
- Type Parameters:
S
- the type ofInputFromManager
expected
A dummy task that simply writes a message to all log files, specifically: 1. log file for
experiment 2. log file for each input-object
The message is:
- a line saying Hello World.
- a recommendation to replace the task with a specific task.
- a link to a page on the Anchor website showing predefined tasks.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doJobOnInput
(InputBound<S, NoSharedState> input) Performs the task on a particular input.boolean
Is the execution-time of the task per-input expected to be very quick to execute?Highest class(es) that will function as a valid input.Methods inherited from class org.anchoranalysis.experiment.bean.task.TaskWithoutSharedState
afterAllJobsAreExecuted, beforeAnyJobIsExecuted
Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
defaultOutputs, executeJob, isInputCompatibleWith
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
HelloWorld
public HelloWorld()
-
-
Method Details
-
inputTypesExpected
Description copied from class:Task
Highest class(es) that will function as a valid input.This is usually the class of T (or sometimes the absolute base class InputFromManager).
- Specified by:
inputTypesExpected
in classTask<S extends InputFromManager,
NoSharedState> - Returns:
- the input-types that a task expects.
-
doJobOnInput
Description copied from class:Task
Performs the task on a particular input.- Specified by:
doJobOnInput
in classTask<S extends InputFromManager,
NoSharedState> - Parameters:
input
- the input for the job.- Throws:
JobExecutionException
- if an error occurs executing a particular job, that is not otherwise suppressed.
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()Description copied from class:Task
Is the execution-time of the task per-input expected to be very quick to execute?- Specified by:
hasVeryQuickPerInputExecution
in classTask<S extends InputFromManager,
NoSharedState> - Returns:
- true iff the execution is expected to be very quick, false otherwise.
-