public class PLAMutation extends AbstractMutationOperator
parameters_
Constructor and Description |
---|
PLAMutation(java.util.Map<java.lang.String,java.lang.Object> parameters) |
Modifier and Type | Method and Description |
---|---|
boolean |
AddClassMutation(double probability,
Solution solution,
java.lang.String scope) |
boolean |
AddManagerClassMutation(double probability,
Solution solution) |
boolean |
doMutation(double probability,
Solution solution) |
boolean |
FeatureMutation(double probability,
Solution solution,
java.lang.String scope) |
protected boolean |
hookMutation(Solution solution,
java.lang.Double probability) |
boolean |
MoveAttributeMutation(double probability,
Solution solution,
java.lang.String scope) |
boolean |
MoveMethodMutation(double probability,
Solution solution,
java.lang.String scope) |
boolean |
MoveOperationMutation(double probability,
Solution solution) |
<T> T |
randomObject(java.util.List<T> allObjects) |
execute, isValidSolution
getParameter, setParameter
public PLAMutation(java.util.Map<java.lang.String,java.lang.Object> parameters)
protected boolean hookMutation(Solution solution, java.lang.Double probability) throws java.lang.Exception
hookMutation
in class AbstractMutationOperator
java.lang.Exception
public boolean doMutation(double probability, Solution solution) throws java.lang.Exception
java.lang.Exception
public boolean MoveAttributeMutation(double probability, Solution solution, java.lang.String scope) throws JMException
JMException
public boolean MoveMethodMutation(double probability, Solution solution, java.lang.String scope) throws JMException
JMException
public boolean MoveOperationMutation(double probability, Solution solution) throws JMException
JMException
public boolean AddClassMutation(double probability, Solution solution, java.lang.String scope) throws JMException
JMException
public boolean AddManagerClassMutation(double probability, Solution solution) throws JMException
JMException
public boolean FeatureMutation(double probability, Solution solution, java.lang.String scope) throws JMException
JMException
public <T> T randomObject(java.util.List<T> allObjects)