|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsofya.mutator.selectors.OperatorMutationSelector
public class OperatorMutationSelector
Mutation selector that selects by mutation operator.
| Constructor Summary | |
|---|---|
OperatorMutationSelector(java.util.Set ops)
Creates a new mutation selector. |
|
OperatorMutationSelector(java.lang.String[] ops)
Creates a new mutation selector. |
|
| Method Summary | |
|---|---|
Mutation.Variant |
getVariant(Mutation mutation)
Gets the selected variant. |
boolean |
isSelected(Mutation mutation)
Reports whether a mutation is selected. |
void |
setMutationCount(int count)
Sets the total number of mutations that may be passed to this selector (typically the number of mutations in a mutation table). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperatorMutationSelector(java.lang.String[] ops)
ops - Array of selected mutation operators, as operator
abbreviation strings (e.g. "AOC", "AOP", etc.).public OperatorMutationSelector(java.util.Set ops)
ops - Set of selected mutation operators, as operator
abbreviation strings (e.g. "AOC", "AOP", etc.).| Method Detail |
|---|
public boolean isSelected(Mutation mutation)
MutationSelector
isSelected in interface MutationSelectormutation - Mutation to be checked for selection.
true if this selector implements a selection
criteria that the given mutation meets, false
otherwise.public Mutation.Variant getVariant(Mutation mutation)
MutationSelectorSome mutation operators, such as the arithmetic operator change (AOP), generate multiple variants at a single location.
getVariant in interface MutationSelectormutation - Mutation for which to retrieve the selected variant.
public void setMutationCount(int count)
MutationSelectorThis is useful for some selectors, such as those that implement random selection criteria.
setMutationCount in interface MutationSelectorcount - Total number of mutations from which this selector
may select.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||