public class ReplaceTreeBySequenceMutation extends TreeMutationAbstract
changedAtLastCall, key, locationOfLastChange, MAXTRIES, registry, typeOfChange
Constructor and Description |
---|
ReplaceTreeBySequenceMutation(CentralRegistry registry) |
Modifier and Type | Method and Description |
---|---|
NAryTree |
mutate(NAryTree tree)
Calls mutate(Node) on the root and makes sure that the changed node
becomes the new root
|
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, noChange
public ReplaceTreeBySequenceMutation(CentralRegistry registry)
public NAryTree mutate(NAryTree tree)
TreeMutationAbstract
mutate
in class TreeMutationAbstract
public NAryTree mutate(NAryTree tree, int node)
TreeMutationAbstract
mutate
in class TreeMutationAbstract
node
- Node to mutate on