Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 54d02098 rédigé par hiba-coder's avatar hiba-coder
Parcourir les fichiers

modify read-me v0.1

parent 31309758
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Aucun aperçu pour ce type de fichier
......@@ -122,4 +122,23 @@ The ***TraceDQL*** query is as follows:
### TraceDQL queries to answer Q2
The second question focuses on determining how many head products were produced during a given period. In this case, we consider the simulation duration as the given period. To calculate this, we first ***select*** all products and then ***filter them based on their type***.
A key challenge here is that the same product may appear multiple times in the execution trace. For example, a head product with id = 1 is captured three times(i.., at currentTime = 2, currentTime = 3, and currentTime = 5). To avoid counting the same product more than once, we can eliminate duplicates by using the product’s ***id*** attribute.
<div align="center">
<img src="images/head_pp_schema.png" alt="Alt text" width="300">
</div>
Therefore, a ***TraceDQL*** query to count the heads produced products is as follows:
<div align="center">
<img src="images/query_head_pp.png" alt="Alt text" width="300">
</div>
The ***type*** parameter is used to generalize the query, allowing it to retrieve products of any specified type.
In our case, the ***type*** is ***head***, which will be passed as a parameter in the following ***data***:
<div align="center">
<img src="images/data_head_pp.png" alt="Alt text" width="400">
</div>
### TraceDQL queries to answer Q3
coming soon...
\ No newline at end of file
images/data_head_pp.png

7,7 ko

images/head_pp_schema.png

83,6 ko

images/query_head_pp.png

20,5 ko

0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter