public final class ExperimentContext extends Object
Experiment.| Modifier and Type | Class and Description |
|---|---|
static class |
ExperimentContext.ExperimentContextBuilder
Builder to create populated instance of the
ExperimentContext. |
| Constructor and Description |
|---|
ExperimentContext(ExperimentContext other)
The copy constructor.
|
ExperimentContext(long step)
Creates new instance with specified parameters.
|
ExperimentContext(long step,
long epoch)
Creates new instance with specified parameters.
|
ExperimentContext(long step,
long epoch,
String context)
Creates new instance with specified parameters.
|
ExperimentContext(String context)
Creates new instance with specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static ExperimentContext.ExperimentContextBuilder |
builder()
Returns builder to create populated instance of the
ExperimentContext. |
static ExperimentContext |
empty()
The factory to return empty
ExperimentContext instance. |
boolean |
equals(Object obj)
Indicates whether provided context object equals to this one.
|
boolean |
isEmpty()
Allows to check if this is empty context, i.e., has no value set.
|
void |
mergeFrom(@NonNull ExperimentContext other)
Merges not empty values from other context into this one.
|
public ExperimentContext(String context)
context - the current context identifier of the data log operation.public ExperimentContext(long step,
long epoch,
String context)
step - the current step of the experiment.epoch - the current epoch of the experiment.context - the current context identifier of the data log operation.public ExperimentContext(long step,
long epoch)
step - the current step of the experiment.epoch - the current epoch of the experiment.public ExperimentContext(long step)
step - the current step of the experiment.public ExperimentContext(ExperimentContext other)
other - the other ExperimentContext to be used as source.public void mergeFrom(@NonNull
@NonNull ExperimentContext other)
other - the context to be merged into this.public boolean isEmpty()
true if this is empty context.public boolean equals(Object obj)
public static ExperimentContext empty()
ExperimentContext instance.ExperimentContextpublic static ExperimentContext.ExperimentContextBuilder builder()
ExperimentContext.ExperimentContext.Copyright © 2022. All rights reserved.