Class TaskArguments
Object
TaskArguments
Arguments that can further specify an experiment's task in addition to its bean
specification.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates with no initial size.Creates with a specific initial size-suggestion. -
Method Summary
Modifier and TypeMethodDescriptionvoidassignGroup(String groupRange) Assigns an index-range to use to form groups, by subsetting components from each input's identifier.voidassignMaxNumberProcessors(String numberProcessors) Assigns a suggested maximum number of processors (CPUs) for a task.voidassignSize(String size) Assign dimensions or scaling factor or size for an image, as may be used by a task.voidassignTaskName(Optional<String> taskName) Assigns a name for the task.An index-range to use for grouping, by subsetting components from each input's identifier.Suggests a maximum number of processors (CPUs) for a task.getSize()Suggests dimensions or a scaling-factor to resize an image to.A name to describe the ongoing task.
-
Constructor Details
-
TaskArguments
public TaskArguments()Creates with no initial size. -
TaskArguments
Creates with a specific initial size-suggestion.- Parameters:
size- the size-suggestion.
-
-
Method Details
-
assignTaskName
Assigns a name for the task.- Parameters:
taskName- the name to assign.
-
assignSize
Assign dimensions or scaling factor or size for an image, as may be used by a task.- Parameters:
size- a string describing the size in a format compatible withImageSizeSuggestionFactory.create(String).- Throws:
ExperimentExecutionException- if the format of size is invalid.
-
assignGroup
Assigns an index-range to use to form groups, by subsetting components from each input's identifier.- Parameters:
groupRange- a string in the format expected byIndexRangeNegativeFactory.parse(java.lang.String), or an empty-string which is considered as "0".- Throws:
ExperimentExecutionException- ifgroupRangedoes have the expected format.
-
assignMaxNumberProcessors
Assigns a suggested maximum number of processors (CPUs) for a task.- Parameters:
numberProcessors- the maximum number of processors.- Throws:
ExperimentExecutionException- if the string doesn't describe a positive integer.
-
getTaskName
A name to describe the ongoing task. -
getSize
Suggests dimensions or a scaling-factor to resize an image to. -
getMaxNumberProcessors
Suggests a maximum number of processors (CPUs) for a task. -
getGroupIndexRange
An index-range to use for grouping, by subsetting components from each input's identifier.
-