implement max intersect search
This commit is contained in:
@@ -232,6 +232,14 @@ public class PowerPlayController {
|
||||
}
|
||||
}
|
||||
|
||||
private void getMaxIntersect(){
|
||||
Collection<Place> controlls = getControlSystems();
|
||||
result.clear();
|
||||
if (!controlls.isEmpty()){
|
||||
Collection<PowerPlayAnalyzator.IntersectData> intersect = analyzator.getMaxIntersect(controlls);
|
||||
result.addAll(BindingsHelper.observableList(intersect, ResultEntry::new));
|
||||
}
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void currentAsChecked(){
|
||||
@@ -266,6 +274,9 @@ public class PowerPlayController {
|
||||
if (rbExpansions.isSelected()){
|
||||
getNearExpansions();
|
||||
}
|
||||
if (rbMaxIntersect.isSelected()){
|
||||
getMaxIntersect();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user