Class InputBound<T,S>
Object
InputBound<T,S>
- Type Parameters:
T
- input-object typeS
- shared-state type
Input for executing a task, associated with shared-state and other parameters.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionInputBound
(T input, S sharedState, boolean detailedLogging, InputOutputContextStateful contextExperiment, InputOutputContextStateful contextJob) Creates a newInputBound
instance. -
Method Summary
Modifier and TypeMethodDescription<U> InputBound
<U, S> changeInput
(U inputToAssign) Copies the current instance but changes the input.<U,
V> InputBound <U, V> changeInputAndSharedState
(U inputToAssign, V sharedStateToAssign) Copies the current instance but changes both the input and shared-state.Creates anInitializationContext
from the current instance.The input-output context associated with the current experiment.The input-output context associated with the current job.getInput()
The input is boundTheLogger
associated with this input, as it is being processed as a job.TheStatefulMessageLogger
associated with the job thati s being processed.TheOutputter
associated with this input, as it is being processed as a job.The state shared between inputs.The arguments for the task that is being processed.boolean
Whether logging is more detailed (true) or less detailed (false).
-
Constructor Details
-
InputBound
public InputBound(T input, S sharedState, boolean detailedLogging, InputOutputContextStateful contextExperiment, InputOutputContextStateful contextJob) Creates a newInputBound
instance.- Parameters:
input
- The input is bound. *sharedState
- The state shared between inputs.detailedLogging
- Whether logging is more detailed (true) or less detailed (false).contextExperiment
- The input-output context associated with the current experiment.contextJob
- The input-output context associated with the current job.
-
-
Method Details
-
changeInput
Copies the current instance but changes the input.This an immutable operation that does not alter the existing instance.
- Type Parameters:
U
- the type ofinputToAssign
.- Parameters:
inputToAssign
- the input in the copy, that replaces the existing input.- Returns:
- a copy of the current instance, except the input is replaced with
inputToAssign
.
-
createInitializationContext
Creates anInitializationContext
from the current instance.- Returns:
- a newly created
InitializationContext
.
-
getOutputter
TheOutputter
associated with this input, as it is being processed as a job.- Returns:
- the outputter.
-
getLogger
TheLogger
associated with this input, as it is being processed as a job.- Returns:
- the logger.
-
getLogReporterJob
TheStatefulMessageLogger
associated with the job thati s being processed.- Returns:
- the logger.
-
getTaskArguments
The arguments for the task that is being processed.- Returns:
- the arguments.
-
getInput
The input is bound. * -
isDetailedLogging
public boolean isDetailedLogging()Whether logging is more detailed (true) or less detailed (false). -
getContextExperiment
The input-output context associated with the current experiment. -
getContextJob
The input-output context associated with the current job.
-