Fiae Ap2-2 Winter 2023
Fiae Ap2-2 Winter 2023
Die Strategie zur Bestimmung der Flugrouten der Drohnen basiert darauf, die nächstgelegene Position von der aktuellen Position innerhalb der Geopositionen zu wählen. Hierzu wird ein Array geoPositions bereitgestellt, welches die Geopositionen enthält. Die erste Position im Array wird als Startposition genutzt und in flightPositions gespeichert. Danach wird die geoposition ermittelt, die in der kürzesten Distanz zur aktuellen Position liegt, und zur neuen aktuellen Position erklärt. Diese wird in flightPositions gespeichert und aus geoPositions gelöscht. Dieser Vorgang wird wiederholt, bis alle Positionen ermittelt und besucht wurden .
To retrieve a customer list based on a specific postal code range, an SQL query can use a WHERE clause to filter records within that range. An example query: 'SELECT * FROM Kunde WHERE Kd_PLZ BETWEEN '50800' AND '51999'' would extract customers whose postal codes fall within this range, providing a list that adheres to specified criteria, including relevant fields like Kd_Firma, Kd_Strasse, and Kd_Ort .
The proposed algorithm for determining the flight path of autonomous drones in a vineyard involves sequentially visiting the nearest next position from the current location. The algorithm starts with the first position in an array, geoPositions, as the current position, which is then moved to a new array, flightPositions, that records the flight path. This initial position is removed from geoPositions. The algorithm then repeatedly identifies the closest position to the current one, adds it to flightPositions, and updates the current position, removing each visited position from geoPositions. This continues until all positions have been visited and recorded in flightPositions .
A SQL query to update incorrect discounts applied to red wine sales in May 2023 should change the discount from 0% to 12% for all relevant transactions. The query needs to filter records where Rotwein (red wine) was sold in that specific month. An example query could be: 'UPDATE Rechnungposition SET RgPos_RabattProzent = 12 WHERE RpPos_MwStSatz = 0 AND RgPos_RgldKey IN (SELECT Rg_ldKey FROM Rechnung WHERE Rg_Datum BETWEEN '2023-05-01' AND '2023-05-31').
In relationalen Datenmodellen wird besonderer Fokus auf die Trennung und Verknüpfung von Datenentitäten gelegt, was in ersten Systemmodellen wie hier für Messgeräte und -daten wichtig ist, um Redundanz und Anomalien zu vermeiden. Es gibt spezifische Entitäten für die Messstelle und Messgeräte, die unabhängig verwaltet aber sinnvoll verknüpft sind, was Flexibilität in Anpassungen, hohe Datenintegrität und optimale Nutzung bei Abfragen ermöglicht. Im Gegensatz zu unorganisierten Datenbanken bieten relationale Modelle besser strukturierte Datenmanagement- und Abfragemöglichkeiten durch Schlüsselrelationen, was besonders für dynamisch komplexe Einsatzfelder wie autonome Messsysteme essenziell ist .
Das unkomprimierte Raw-Format ist ideal, um eine hohe Qualität der Bilddaten für eine nachfolgende KI-Auswertung zu bewahren, da es alle Bildinformationen ohne Verluste beinhaltet. Bei einer Kamera, die Bilder mit 20 Megapixeln liefert, und einer Farbverarbeitung mit 8 Bit pro Kanal im RGB-Format, ergibt sich ein erheblicher Speicherbedarf, wie zuvor berechnet, in GiB für solche operationellen Bilder über das Jahr. Trotz des großen Speicherbedarfs ist es für präzise KI-Analysen erforderlich, besonders wenn Farbdetails und Bildqualität eine große Rolle spielen .
The quality of wine is assessed using an app developed by AMAG Soft GmbH that allows users to input measurements taken from grapes before harvest. The app first requires the user to enter the acidity level of the grapes through the function einlesenSaeuregehalt() of the GUI class. If the acidity level is too high, no further measurements are taken, and the message 'Säuregehalt zu hoch' is displayed using the ausgabe() method. If the acidity level is acceptable, the user then inputs the Oechsle degree using the einlesenOechslegrad() function. The ripeness degree is then calculated by the berechneReifegrad() method of the Ernterechner class. Based on the calculated ripeness, the app outputs either 'hoher Reifegrad' for degrees of 100 and above, 'mittlerer Reifegrad' for degrees between 80 and 99, or 'niedriger Reifegrad' for degrees between 70 and 79 .
The 'calculateFlight' algorithm optimizes drone navigation by maintaining a list of unvisited geographical positions and iteratively selecting the nearest available position to visit next. Initially, the algorithm's current position is set to the initial position in the geoPositions array, which is added to the flightPositions array to record the start of the flight path. This position is then removed from geoPositions. The loop continues to select the nearest unvisited position, adds it to flightPositions, and removes it from geoPositions, updating the current position each time, until all positions have been visited and logged .
To develop a sequence diagram for wine quality assessment using the app, start by identifying key interactions between components such as the GUI and Ernterechner classes. Detail the input methods, like einlesenSaeuregehalt() and einlesenOechslegrad(), followed by the decision point for checking acidity. Next, illustrate the call to berechneReifegrad() for calculating ripeness. Display conditional message outputs like 'Säuregehalt zu hoch' or corresponding ripeness level messages. Ensure that object interactions and message passing align with the logical flow of checking wine quality .
Um fehlerhafte Rabatt-Speicherungen in einer Datenbank zu korrigieren, können SQL-Befehle eingesetzt werden. Beispielsweise durch ein UPDATE-Statement, das die relevanten Einträge selektiert und korrigiert. In diesem Fall soll der Rabatt von 0 % für alle Rotweine, die im Mai 2023 verkauft wurden, auf 12 % gesetzt werden. Die SQL-Anweisung hierzu könnte lauten: UPDATE Rechnungposition SET RgPos_RabattProzent = 12 WHERE RpPos_MwStSatz = 19.00 AND Zeitraum = Mai 2023 AND Weinart = 'Rotwein'. Diese Methode sorgt dafür, dass alle fehlerhaften Einträge in der Datenbank systematisch und präzise aktualisiert werden .