public class MutableLabelInfo extends LabelInfo implements MutableOutputInfo<Label>
LabelInfo
. Can record new observations of Labels, incrementing the
appropriate counts.labelCounts, labels, unknownCount
Constructor and Description |
---|
MutableLabelInfo(LabelInfo info)
Constructs a mutable deep copy of the supplied label info.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the OutputInfo, removing all things it's observed.
|
MutableLabelInfo |
copy()
Generates a copy of this OutputInfo, including it's mutability.
|
void |
observe(Label output)
Records an output value or statistics thereof.
|
String |
toReadableString()
Generates a String form of this OutputInfo.
|
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getLabelCount, getLabelCount, getUnknownCount, outputCountsIterable, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size
public MutableLabelInfo(LabelInfo info)
info
- The info to copy.public void observe(Label output)
MutableOutputInfo
observe
in interface MutableOutputInfo<Label>
output
- The observed output.public void clear()
MutableOutputInfo
clear
in interface MutableOutputInfo<Label>
public MutableLabelInfo copy()
OutputInfo
copy
in interface OutputInfo<Label>
copy
in class LabelInfo
public String toReadableString()
OutputInfo
This String can contain newlines, tabs and other formatting.
toReadableString
in interface OutputInfo<Label>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.