Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > ConnectionDB
ConnectionDB-Klasse
Datenbank mit Verbindungen. Verbindungen werden in der Reihenfolge ihrer vertikalen Komponente gespeichert. So können Verbindungen in einem Gebiet schnell über eine binäre Suche gefunden werden.
Unterschrift:
export declare class ConnectionDB
Konstruktoren
Methoden
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-10-16 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-10-16 (UTC)."],[[["The `ConnectionDB` class manages a database of connections, organized for efficient retrieval using binary search."],["It provides methods for finding nearby and compatible connections, essential for block interactions and bumping."],["Connections are stored and accessed based on their vertical position for optimized searching."],["The `ConnectionDB` is initialized for a workspace to handle connections between blocks."]]],["The `ConnectionDB` class manages a database of connections, ordered vertically for efficient lookup. Key actions include constructing a `ConnectionDB` instance, using `getNeighbours` to find nearby connections (without type checking), initializing a set of connection databases via the static `init` method, removing a connection using `removeConnection`, and finding the nearest compatible connection with `searchForClosest`. These functions allow to efficiently manage and query connections within a blockly workspace.\n"]]