mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Ai improvements 1 (#914)
* improve netlist * structure improvement * chatbot enhancements * chatbot improvements * charbot enhancements * Update user_manual.sql * chatbot enhancements * release
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.diylc</groupId>
|
||||
<artifactId>diylc-parent</artifactId>
|
||||
<version>5.2.0</version>
|
||||
<version>5.3.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>diylc-library</artifactId>
|
||||
|
||||
@@ -57,7 +57,7 @@ import org.diylc.netlist.TreeException;
|
||||
import org.diylc.netlist.TreeLeaf;
|
||||
import org.diylc.netlist.Tree.ITreeWalker;
|
||||
|
||||
public class GuitarDiagramAnalyzer extends AbstractNetlistAnalyzer implements INetlistAnalyzer {
|
||||
public class GuitarDiagramAnalyzer extends AbstractNetlistAnalyzer implements INetlistAnalyzer, IGuitarDiagramAnalyzer {
|
||||
|
||||
private static Set<String> JACK_TYPES = new HashSet<String>();
|
||||
private static Set<String> POT_TYPES = new HashSet<String>();
|
||||
@@ -119,6 +119,27 @@ public class GuitarDiagramAnalyzer extends AbstractNetlistAnalyzer implements IN
|
||||
return Set.of(NetlistSwitchPreference.WITH);
|
||||
}
|
||||
|
||||
public List<String> collectNotes(Netlist netlist) {
|
||||
|
||||
List<String> notes = new ArrayList<String>();
|
||||
|
||||
Tree tree = null;
|
||||
try {
|
||||
tree = constructTree(netlist);
|
||||
} catch (TreeException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
if (tree == null) {
|
||||
notes.add("No pickups are connected to the output jack");
|
||||
return notes;
|
||||
}
|
||||
|
||||
processTree(tree, notes);
|
||||
|
||||
return notes;
|
||||
}
|
||||
|
||||
protected Summary summarize(Netlist netlist) throws TreeException {
|
||||
List<String> notes = new ArrayList<String>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user