public abstract static class Output.CollectorOption extends Object
Output.CollectorOption
specify how an added Collector
is handled
by the Output
object where it is added.Modifier and Type | Method and Description |
---|---|
static Output.CollectorOption |
collectInterval(int collectInterval)
Creates a
Output.CollectorOption that associates the collector to be
added with a collect interval. |
static Output.CollectorOption |
hidden(boolean hidden)
Creates a
Output.CollectorOption that associates the collector to be
added with a hidden state. |
static Output.CollectorOption |
interval(int interval)
Creates a
Output.CollectorOption that associates the collector to be
added with a step interval. |
static Output.CollectorOption |
name(String name)
Creates a
Output.CollectorOption that associates the collector with
a custom name. |
static Output.CollectorOption |
writeInterval(int writeInterval)
Creates a
Output.CollectorOption that associates the collector to be
added with a write interval. |
static Output.CollectorOption |
writer(OutputWriter writer)
Creates a
Output.CollectorOption that associates the collector to be
added with a custom OutputWriter . |
static Output.CollectorOption |
writer(Path subPath)
Creates a
Output.CollectorOption that associates the collector to be
added with the default writer. |
public static Output.CollectorOption name(String name)
Output.CollectorOption
that associates the collector with
a custom name.name
- the custom name to be associatedOutput.CollectorOption
Collector.getName()
public static Output.CollectorOption writer(OutputWriter writer)
Output.CollectorOption
that associates the collector to be
added with a custom OutputWriter
.writer
- the OutputWriter
to be associatedOutput.CollectorOption
public static Output.CollectorOption writer(Path subPath)
Output.CollectorOption
that associates the collector to be
added with the default writer.subPath
- the sub path which will be resolved relativelyOutput.CollectorOption
Collector.createWriter(Path)
public static Output.CollectorOption interval(int interval)
Output.CollectorOption
that associates the collector to be
added with a step interval. The given interval is used for collection
and writing. Collectors without associated interval collect on every
step.interval
- the step interval to be associatedOutput.CollectorOption
collectInterval(int)
,
writeInterval(int)
public static Output.CollectorOption collectInterval(int collectInterval)
Output.CollectorOption
that associates the collector to be
added with a collect interval. Collectors without associated interval
collect on every step.collectInterval
- the step interval to be associatedOutput.CollectorOption
public static Output.CollectorOption writeInterval(int writeInterval)
Output.CollectorOption
that associates the collector to be
added with a write interval. Collectors without associated interval
write on every step.writeInterval
- the step interval to be associatedOutput.CollectorOption
public static Output.CollectorOption hidden(boolean hidden)
Output.CollectorOption
that associates the collector to be
added with a hidden state. When true
the collector will
be hidden in inspector.hidden
- the hidden stateOutput.CollectorOption