-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
NEW
-
NEW
As the construction heuristic definition is now supported, it's essential we provide a way how to specify difficulty comparator when using related CH types (e.g. FIRST_FIT_DECREASING).
Requirements:
- allow comparing on object fields (including nested objects) in lexicographic order (ascending/descending order)
- source generation should avoid using org.apache.commons.lang3.builder.CompareToBuilder, let's use methods available in java.util.Comparator instead
The screen could look like this:
Would might generate code like this:
public int compare(Lecture o1, Lecture o2) { return Comparator .comparing((Lecture l) -> l.getCourse().getTeacher().getAge(), Comparator.reverseOrder()) .thenComparing((Lecture l) -> l.getCourse().getStudentSize()) .compare(o1, o2); }
- blocks
-
PLANNER-617 Workbench: Construction Heuristics - Add support for EntitySorterManner
-
- Resolved
-
- is incorporated by
-
PLANNER-364 Workbench: Difficulty and strength comparison support
-
- Closed
-