Constructor and Description |
---|
PLAFeatureDrivenCrossoverOldVersion() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributesRealizingFeatureToOffspring(Concern feature,
Class classComp,
Package comp,
Architecture offspring,
Architecture parent) |
void |
addClassToOffspring(Class klass,
Package targetComp,
Architecture offspring,
Architecture parent) |
void |
addElementsToOffspring(Concern feature,
Architecture offspring,
Architecture parent,
java.lang.String scope) |
void |
addOrCreatePackageIntoOffspring(Concern feature,
Architecture offspring,
Architecture parent,
Package parentPackage) |
Solution[] |
crossoverFeatures(double probability,
Solution parent1,
Solution parent2,
java.lang.String scope) |
Solution[] |
execute(java.util.Map<java.lang.String,java.lang.Object> parameters,
Solution[] solution,
java.lang.String scope) |
static Class |
getParent(Class cls) |
static boolean |
isChild(Class cls) |
void |
obtainChild(Concern feature,
Architecture parent,
Architecture offspring,
java.lang.String scope) |
<T> T |
randomObject(java.util.List<T> allObjects) |
public Solution[] execute(java.util.Map<java.lang.String,java.lang.Object> parameters, Solution[] solution, java.lang.String scope)
public static boolean isChild(Class cls)
public Solution[] crossoverFeatures(double probability, Solution parent1, Solution parent2, java.lang.String scope) throws JMException, java.lang.CloneNotSupportedException, ClassNotFound, PackageNotFound, NotFoundException, ConcernNotFoundException
JMException
java.lang.CloneNotSupportedException
ClassNotFound
PackageNotFound
NotFoundException
ConcernNotFoundException
public void obtainChild(Concern feature, Architecture parent, Architecture offspring, java.lang.String scope) throws ClassNotFound, PackageNotFound, NotFoundException, ConcernNotFoundException
public <T> T randomObject(java.util.List<T> allObjects) throws JMException
JMException
public void addElementsToOffspring(Concern feature, Architecture offspring, Architecture parent, java.lang.String scope)
public void addOrCreatePackageIntoOffspring(Concern feature, Architecture offspring, Architecture parent, Package parentPackage) throws java.lang.Exception
java.lang.Exception
public void addAttributesRealizingFeatureToOffspring(Concern feature, Class classComp, Package comp, Architecture offspring, Architecture parent) throws java.lang.Exception
java.lang.Exception
public void addClassToOffspring(Class klass, Package targetComp, Architecture offspring, Architecture parent)