Class ExecutionArguments
Object
ExecutionArguments
Arguments that can further specify an experiment's execution (in its entirety) in addition
to its bean specification.
This is often used to insert further parameters from the command-line into bean plugins, that have otherwise been loaded from BeanXML.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates with neither a model-directory nor initial task-arguments.ExecutionArguments
(Path modelDirectory, TaskArguments task) Creates with a model-directory and an image-size suggestion. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateDebugMode
(String debugContains) Activates debug-mode.Derive aPathPrefixerContext
from the arguments in this class.input()
Arguments to help determine the input to the experiment.Additional parameters that offer context for many beans that provide input-functions.boolean
Has debug mode been enabled when executing an experiment?output()
Arguments to help specify the outputs from the experiment.task()
Arguments to help specify the outputs from the experiment.
-
Constructor Details
-
ExecutionArguments
public ExecutionArguments()Creates with neither a model-directory nor initial task-arguments. -
ExecutionArguments
Creates with a model-directory and an image-size suggestion.- Parameters:
modelDirectory
- the model-directory.task
- arguments to help specify the outputs from the experiment.
-
-
Method Details
-
inputContextParameters
Additional parameters that offer context for many beans that provide input-functions.- Returns:
- the parameters, reusing the internal data-structure.
-
derivePathPrefixerContext
Derive aPathPrefixerContext
from the arguments in this class.- Returns:
- a newly created
PathPrefixerContext
derived from this class. - Throws:
PathPrefixerException
- if the the path inoutputDirectory
ofPathPrefixerContext
is relative instead of absolute.
-
activateDebugMode
Activates debug-mode.- Parameters:
debugContains
- maybe a string used for filtering inputs during debugging, or an empty-string if this isn't enabled.
-
isDebugModeEnabled
public boolean isDebugModeEnabled()Has debug mode been enabled when executing an experiment?- Returns:
- true iff debug mode has been enabled.
-
input
Arguments to help determine the input to the experiment. -
output
Arguments to help specify the outputs from the experiment. -
task
Arguments to help specify the outputs from the experiment.
-