Archived
0

implement max intersect search

This commit is contained in:
Mo
2016-11-10 15:52:44 +03:00
parent c867bb50f0
commit 578ab80834
2 changed files with 48 additions and 1 deletions

View File

@@ -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();
}
}