public class ConfigurationMutator extends TreeMutationAbstract
changedAtLastCall, locationOfLastChange, MAXTRIES, registry, typeOfChange
Constructor and Description |
---|
ConfigurationMutator(CentralRegistryConfigurable registry) |
Modifier and Type | Method and Description |
---|---|
static NAryTree |
cleanUpConfigurations(NAryTree tree,
int nrConfigurationsRequired)
Cleans up the configurations of this tree.
|
static void |
downgrade(NAryTreeImpl tree,
int configuration,
int node,
byte toType) |
static byte[] |
getDowngradeOptions(int type)
Returns a list of possible downgrade options for the given operator type
|
NAryTree |
mutate(NAryTree tree,
int node)
Mutates the given node (only use if you need to mutate a specific sub
tree, not beeing the whole tree).
|
changedAtLastCall, didChange, getKey, locationOfLastChange, mutate, noChange
public ConfigurationMutator(CentralRegistryConfigurable registry)
public NAryTree mutate(NAryTree tree, int node)
TreeMutationAbstract
mutate
in class TreeMutationAbstract
node
- Node to mutate onpublic static NAryTree cleanUpConfigurations(NAryTree tree, int nrConfigurationsRequired)
tree
- NAryTree to be cleanedpublic static byte[] getDowngradeOptions(int type)
type
- public static void downgrade(NAryTreeImpl tree, int configuration, int node, byte toType)