удаление отладочной печати сравнения и не только

This commit is contained in:
2024-07-22 00:57:05 +03:00
parent 3374c9783b
commit 53ad5e637f
76 changed files with 78 additions and 328 deletions

View File

@@ -335,7 +335,6 @@ public class ProjectArray extends DBObject {
char s = distributed ? '1' : '0';
String filterMask = getFilterMask();
String variant = binary_in.isEmpty() ? get_binary(varID) : binary_in;
// System.out.println(shortName+"|mask="+filterMask+"|varId="+variant+"|"+s);
for (int i = 0; i < variant.length(); ++i) {
if ((filterMask.toCharArray()[i] == s) && (variant.toCharArray()[i] != s)) return false;
}

View File

@@ -34,9 +34,7 @@ public class FunctionsGraphUI extends mxGraph {
public final static Timer ffTimer = new Timer(1000, new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
System.out.println("Time to Redraw Functions Graph");
Pass_2021.passes.get(PassCode_2021.SPF_GetGraphFunctionPositions).Do();
System.out.println("DONE");
}
});
//---
@@ -221,21 +219,12 @@ public class FunctionsGraphUI extends mxGraph {
}
}
}
/*
System.out.println("------");
for (String key: mxEventObject.getProperties().keySet()){
System.out.println(key+" : "+ mxEventObject.getProperties().get(key));
}
System.out.println("------");
*/
});
graphComponent.getGraphControl().setComponentPopupMenu(new FunctionsGraphMenu());
//обработка клика мышом.
graphComponent.getGraphControl().addMouseListener(new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
System.out.println("Released");
Object cell = graphComponent.getCellAt(e.getX(), e.getY());
if (cell != null) {
mxCell mx_cell = (mxCell) cell;

View File

@@ -41,15 +41,12 @@ public class ArrayAlignmentBar extends JToolBar {
ChangeListener changeListener = e -> {
//инфа о связях. из списка всех объявленных массивов.
ProjectArray d_array = Current.getProject().declaratedArrays.get(array.id);
System.out.println("current region = " + Current.getParallelRegion().regionId);
System.out.println(array.id + " links count= " + d_array.links.size() + ":" + d_array.printLinks());
//опять же, берем инфу из объявлений!
for (ProjectArray d_link : d_array.links.values()) {
//это массивы из объявлений. прежде чем их трогать проверим а есть ли они в текущей области.
// по адресам принадлежность смотреть нельзя.
// на момент поиска массивов у них их еще нет. а вот ид совпадают.
if (Current.getParallelRegion().ArrayBelongsToRegion(d_link.id)) {
System.out.println(d_link.id + " belongs to current region, apply link!");
//инфа о массиве уже из области. имеющая адрес и бар.
ProjectArray r_link = Current.getParallelRegion().getArrayById(d_link.id);
Pair<JSpinner, JSpinner> pair = r_link.bar.dimensions.get(dim);
@@ -65,17 +62,9 @@ public class ArrayAlignmentBar extends JToolBar {
}
}
public void apply_changes() {
System.out.println(array);
for (int dim : dimensions.keySet()) {
array.ac_new.get(dim).K = (int) dimensions.get(dim).getKey().getValue();
array.ac_new.get(dim).B = (int) dimensions.get(dim).getValue().getValue();
//-
System.out.println("dim=" + dim +
" k=" + array.ac_new.get(dim).K +
" b=" + array.ac_new.get(dim).B
);
//- }
System.out.println("-----");
}
}
}