public class RemoveSubtreeRandom extends TreeMutationAbstract
changedAtLastCall, locationOfLastChange, MAXTRIES, registry, typeOfChange
Constructor and Description |
---|
RemoveSubtreeRandom(CentralRegistry registry) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Each tree mutation should define a unique key to be used to identify the
algorithm in maps and such
|
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, locationOfLastChange, mutate, noChange
public RemoveSubtreeRandom(CentralRegistry registry)
public NAryTree mutate(NAryTree tree, int node)
TreeMutationAbstract
mutate
in class TreeMutationAbstract
node
- Node to mutate onTreeMutationAbstract#mutate(Node)
public java.lang.String getKey()
TreeMutationAbstract
getKey
in class TreeMutationAbstract
TreeMutationAbstract.getKey()