public abstract class BaseDatasetModifier extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, Options
Implementations of this class must provide:
modifyDataset(magpie.data.Dataset)
- Make changes to the dataset as whole and each entryObject.clone()
- Ensure clones of this class do not share referencesOptions.setOptions(java.util.List<java.lang.Object>)
and Options.printUsage()
- Handle user optionsNote, you may want to make special considerations for MultiPropertyDatasets if you
are adjusting the class variables. See example in NonZeroClassModifier
.
Constructor and Description |
---|
BaseDatasetModifier() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
modifyDataset(Dataset Data)
Apply changes to the Dataset.
|
void |
transform(Dataset Data)
Apply some change to the dataset and all of its entries
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
printUsage, setOptions
public void transform(Dataset Data)
Data
- Dataset to be modifiedprotected abstract void modifyDataset(Dataset Data)
Data
- Dataset to be modified