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 newInputBoundinstance. -
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 anInitializationContextfrom 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 boundTheLoggerassociated with this input, as it is being processed as a job.TheStatefulMessageLoggerassociated with the job thati s being processed.TheOutputterassociated 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.booleanWhether 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 newInputBoundinstance.- 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 anInitializationContextfrom the current instance.- Returns:
- a newly created
InitializationContext.
-
getOutputter
TheOutputterassociated with this input, as it is being processed as a job.- Returns:
- the outputter.
-
getLogger
TheLoggerassociated with this input, as it is being processed as a job.- Returns:
- the logger.
-
getLogReporterJob
TheStatefulMessageLoggerassociated 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.
-