T
- input-object typeS
- shared-state typepublic class InputBound<T,S> extends Object
Constructor and Description |
---|
InputBound(T input,
S sharedState,
boolean detailedLogging,
InputOutputContextStateful contextExperiment,
InputOutputContextStateful contextJob) |
Modifier and Type | Method and Description |
---|---|
<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.
|
InitializationContext |
createInitializationContext()
Creates an
InitializationContext from the current instance. |
InputOutputContextStateful |
getContextExperiment()
The input-output context associated with the current experiment.
|
InputOutputContextStateful |
getContextJob()
The input-output context associated with the current job.
|
T |
getInput()
The input is bound.
|
Logger |
getLogger()
The
Logger associated with this input, as it is being processed as a job. |
StatefulMessageLogger |
getLogReporterJob()
The
StatefulMessageLogger associated with the job thati s being processed. |
Outputter |
getOutputter()
The
Outputter associated with this input, as it is being processed as a job. |
S |
getSharedState()
The state shared between inputs.
|
TaskArguments |
getTaskArguments()
The arguments for the task that is being processed.
|
boolean |
isDetailedLogging()
Whether logging is more detailed (true) or less detailed (false).
|
public InputBound(T input, S sharedState, boolean detailedLogging, InputOutputContextStateful contextExperiment, InputOutputContextStateful contextJob)
public <U> InputBound<U,S> changeInput(U inputToAssign)
This an immutable operation that does not alter the existing instance.
U
- the type of inputToAssign
.inputToAssign
- the input in the copy, that replaces the existing input.inputToAssign
.public <U,V> InputBound<U,V> changeInputAndSharedState(U inputToAssign, V sharedStateToAssign)
This an immutable operation that does not alter the existing instance.
U
- the type of inputToAssign
.V
- the type of sharedStateToAssign
.inputToAssign
- the input in the copy, that replaces the existing input.sharedStateToAssign
- the shared-state in the copy, that replaces the existing
shared-state.inputToAssign
.public InitializationContext createInitializationContext()
InitializationContext
from the current instance.InitializationContext
.public Outputter getOutputter()
Outputter
associated with this input, as it is being processed as a job.public Logger getLogger()
Logger
associated with this input, as it is being processed as a job.public StatefulMessageLogger getLogReporterJob()
StatefulMessageLogger
associated with the job thati s being processed.public TaskArguments getTaskArguments()
public T getInput()
public S getSharedState()
public boolean isDetailedLogging()
public InputOutputContextStateful getContextExperiment()
public InputOutputContextStateful getContextJob()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.