mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Merge switch configurations that yield with the same effective wiring
for "Analyze Guitar Wirings" module, for more compact report
This commit is contained in:
@@ -21,8 +21,7 @@
|
||||
*/
|
||||
package org.diylc.netlist;
|
||||
|
||||
|
||||
public class Summary {
|
||||
public class Summary implements Comparable<Summary> {
|
||||
|
||||
private Netlist netlist;
|
||||
private String summary;
|
||||
@@ -36,6 +35,10 @@ public class Summary {
|
||||
public Netlist getNetlist() {
|
||||
return netlist;
|
||||
}
|
||||
|
||||
public void append(Netlist netlist) {
|
||||
this.netlist.getSwitchSetup().addAll(netlist.getSwitchSetup());
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
@@ -76,4 +79,9 @@ public class Summary {
|
||||
public String toString() {
|
||||
return summary.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Summary o) {
|
||||
return netlist.compareTo(o.netlist);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user