oRandomizer.sort(colGoals);
}
// HIERARCHICAL COMBINATION
else if(oPrioritization.equals(TestGoalPrioritization.HIERARCHICAL_COMBINATION)) {
HierarchicalPrioritizationCombination oCombo = ConfigurationTestGoalPrioritization.getHierarchicalPrioritizationCombination();
TestGoalPrioritizatorCombinator oCombinator =
new TestGoalPrioritizatorCombinator(
TestGoalPrioritizatorFactory.getPrioritizator(
oCombo.getPrimaryPrioritization()),
TestGoalPrioritizatorFactory.getPrioritizator(
oCombo.getSecondaryPrioritization()));
oCombinator.sort(colGoals);
}
// WEIGHTED COMBINATION
else {
// FAR_ELEMENTS_FIRST
// HIGH BRANCHING FIRST/LAST
// MANY ATOMS FIRST/LAST
// HIGH POSITIVE ATOMS RATIO FIRST / LAST
TestGoalPrioritizator oPrioritizator =
TestGoalPrioritizatorFactory.getPrioritizator(oPrioritization);
TestGoalPrioritizatorCombinator oCombinator =
new TestGoalPrioritizatorCombinator(oPrioritizator, oRandomizer);
oCombinator.sort(colGoals);
}
}
}