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:
Bane Stojkovic
2025-04-21 20:46:41 +02:00
committed by GitHub
parent b42fe2c34f
commit c914749413
24 changed files with 623 additions and 191 deletions
+1 -1
View File
@@ -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>();