Full text
FINAL DEGREE PROJECT TFG TITLE: Design, development and testing of full-stack web service for a trajectory computation algorithm. DEGREE: Double Bachelor’s Degree in Aerospace Systems Engineering and Telematics Engineering AUTHOR: Maria Cáliz González DIRECTOR: Xavier Prats Menéndez, David De La Torre Sangrà DATE: July 6th, 2023
Resum Aquest document proporciona un informe complet del projecte de final de grau, amb l'objectiu principal de dissenyar, desenvolupar i provar un servei web fullstack complet per facilitar la interacció amigable amb un software de càlcul de trajectòries anomenat Dynamo. El nucli d'aquest projecte rau en prendre un software existent, complex i fer-lo més accessible i senzill d'utilitzar per a una àmplia base d'usuaris a través del desenvolupament d'un servei web. Aprofitant una àmplia gamma de tecnologies - Python, Flask, Vue.js, Tailwind i MongoDB - i seguint metodologies modernes de desenvolupament de software com Agile, s’ha dissenyat i implementat un servidor backend, una interfície frontend i una estructura de base de dades. A més, s’ha integrat una autenticació segura i un sistema eficient per a la gestió d'errors i validació, per garantir una experiència segura i amigable per a l'usuari. Un aspecte clau d'aquest projecte ha estat la necessitat de comprendre com funciona Dynamo, tot i que no es va entrar en els detalls operatius del programari en si. L'enfocament principal va restar en el seu procés de configuració, proporcionant la base per al desenvolupament d'un servei web que permet als usuaris configurar, executar i monitoritzar les simulacions de forma intuïtiva. Això facilita una forma més senzilla per als usuaris de treure partit del poder de Dynamo, independentment del seu coneixement del codi. Per això, es va realitzar una captura de requisits del servei web amb investigadors del grup de recerca ICARUS, garantint així que el servei web desenvolupat s'adapti a les seves necessitats. Tots els aspectes d'aquest projecte, des de la comprensió del procés de configuració de Dynamo fins al desenvolupament del backend i del frontend del servei web, es van abordar sistemàticament i es detallen en aquest document. Títol: Disseny, desenvolupament i testing d’un servei web full-stack per a un algorisme de càlcul de trajectòries. Autor: Maria Cáliz González Director: Xavier Prats Menéndez, David De La Torre Sangrà Data: 6 de juliol de 2023
Title: Design, development and testing of full-stack web service for a trajectory computation algorithm. Author: Maria Cáliz González Director: Xavier Prats Menéndez Date: July 6th, 2023 Overview This document delivers a comprehensive report of the final degree project, which had as its primary goal, the design, developing, and testing a full-stack web service to facilitate user-friendly interaction with a trajectory computation software called Dynamo. The crux of this project lies in taking an existing, complex software and making it more accessible and simpler to use for a broad user base through the development of a web service. By leveraging a wide array of technologies - Python, Flask, Vue.js, Tailwind, and MongoDB - and following modern software development methodologies like Agile, a backend server, frontend interface, and a database structure were designed and implemented. In addition, secure authentication and an efficient system for error handling and validation were integrated to ensure a secure and user-friendly experience. A key aspect of this project has been the need to understand how Dynamo functions, even though we did not go into the intricate operational details of the software itself. The main focus remained on its configuration process, providing the basis for developing a web service that allows users to intuitively configure, run, and monitor their simulations. This facilitates a more straightforward way for users to leverage the power of the Dynamo software, regardless of their technical proficiency. For this reason, a web service requirements capture was carried out with researchers from the ICARUS research group, thus ensuring that the developed web service adapts to their needs. All aspects of this project, from understanding Dynamo's configuration process to the development of the backend and frontend of the web service, were tackled systematically and are detailed in this document.
INDEX INTRODUCTION ................................................................................................... 1 CHAPTER 1. OVERVIEW AND USED TECHNOLOGIES .................................. 4 1.1. Understanding Web Services ............................................................................... 4 1.1.1. Types of Web Services .......................................................................................................... 4 1.1.1.1. SOAP Web Service ....................................................................................................... 4 1.1.1.2. RESTful Web Services ................................................................................................... 4 1.1.2. REST vs SOAP......................................................................................................................... 5 1.2. Technology Landscape ......................................................................................... 6 1.2.1. Server-Side Technologies ...................................................................................................... 6 1.2.1.1. Backend languages for Web Development ................................................................. 6 1.2.1.2. Database Technologies for Web Development ........................................................... 8 1.2.1.3. Final decision for server side ....................................................................................... 9 1.2.2. Client-Side Technologies ..................................................................................................... 10 1.2.2.1. Frontend languages for Web Development .............................................................. 10 1.2.2.2. Final decision for client side....................................................................................... 13 CHAPTER 2. ANALYSIS OF REQUIREMENTS ............................................... 14 2.1. Dynamo Software .............................................................................................. 14 2.2. Requirements gathering methods ...................................................................... 18 2.2.1. Software Requirement Specification (SRS) Document ....................................................... 21 2.3. Requirements gathering session......................................................................... 22 2.3.1. Results of the session .......................................................................................................... 26 2.3.1.1. Initial interview .......................................................................................................... 26 2.3.1.2. Brainstorming ............................................................................................................ 27 2.3.2. Emergence of new requirements ....................................................................................... 30 CHAPTER 3. BACKEND .................................................................................... 32 3.1. Backend Design ................................................................................................. 32 3.1.1. User Management System .................................................................................................. 32 3.1.2. Simulation Management System ........................................................................................ 33 3.1.3. File Management System ................................................................................................... 34 3.2. Backend Implementation ................................................................................... 36 3.2.1. Code structure .................................................................................................................... 37 3.2.1.1. Setting up and Configuring Flask............................................................................... 38 3.2.2. User Management System .................................................................................................. 40 3.2.2.1. Models.py .................................................................................................................. 40 3.2.2.2. Controllers.py ............................................................................................................ 42 3.2.3. Simulation Management System ........................................................................................ 45 3.2.3.1. Models.py .................................................................................................................. 45 3.2.3.2. Controllers.py ............................................................................................................ 46 3.3. Swagger ............................................................................................................ 51 CHAPTER 4. Frontend ...................................................................................... 55 4.1. Frontend Design ................................................................................................ 55 4.2. Frontend Implementation .................................................................................. 58 4.2.1. Code structure .................................................................................................................... 58
4.2.2. User Management System .................................................................................................. 60 4.2.2.1. User Authentication process ..................................................................................... 60 4.1.1.1. Form Handling and User Profile ................................................................................ 64 4.2.3. Simulation Management System ........................................................................................ 66 4.2.3.1. Code ........................................................................................................................... 66 4.2.2.2. Simulation interface .................................................................................................. 68 4.2.2.3. Simulation interface for advanced users ................................................................... 72 CHAPTER 5. TEST AND RESULTS .................................................................. 74 5.1. System outcomes .............................................................................................. 74 5.2. Fulfilled requirements ....................................................................................... 75 5.3. System bugs and issues ...................................................................................... 77 CHAPTER 6. FUTURE WORK AND CONCLUSIONS ..................................... 78 6.1. Future Work ...................................................................................................... 79 BIBLIOGRAPHY ................................................................................................. 81 USEFUL LINKS ................................................................................................................ 83 ............................................................................................................................. 87 ANNEXES............................................................................................................ 87 ANNEX A ....................................................................................................................... 88 SOFTWARE REQUIREMENT SPECIFICATION (SRS) ............................................................................. 88 DYNAMO WEB SERVICES ................................................................................................................... 88
Introduction 1 INTRODUCTION This document describes the work developed for the final degree project whose main objective is the design, development and testing of a full-stack web service for a trajectory computation algorithm, Dynamo. The driving force behind this project is to enhance user interaction with the Dynamo software, allowing them to configure and execute simulations through a user-friendly, web-based interface. Consequently, the intricate processes involved in trajectory computation are simplified, making it accessible to a wider user base with varying levels of technical proficiency. The execution of this project involved a wide range of tasks and sub-tasks, including the development of both a backend server and a frontend interface, the design and implementation of database structures, the establishment of secure authentication procedures, and the management of error handling and validation systems, among others. The project utilizes a comprehensive tech stack, including Python and Flask for the backend, Vue.js and Tailwind for the frontend, along with MongoDB for the database. A deep understanding of these technologies and their successful integration was crucial to build a unified and robust system. The project adopted contemporary software development methodologies such as Agile, to ensure a structured and efficient development process. Regular meetings and the use of project management tools like Trello were crucial for effective communication, coordination, and tracking of project milestones. The Dynamo software [1] is a robust and flexible tool, created by the ICARUS research team at Universitat Politècnica de Catalunya (UPC). The primary function of this software is to provide sophisticated computational capabilities for flight trajectory optimization and prediction, forming an integral part of the trajectory-based operations concept implementation. This software's prowess lies in its ability to provide accurate and optimal flight trajectories for various look-ahead times and operational contexts. This document is organized into six main sections: • 'Introduction' provides an overview of the project, its objectives, and the technologies and methodologies used. • Chapter 1, 'Overview and Used Technologies', details the nature of web services, their types, and the technological landscape adopted in this project. • Chapter 2, 'Analysis of Requirements', outlines the process of gathering project requirements. • Chapter 3, 'Backend', focuses on the design and implementation of the backend server. • Chapter 4, 'Frontend', discusses the design and execution of the frontend interface. • Chapter 5, 'Test and Results', presents the results and outcomes of the project, alongside the identification and handling of system bugs.
2 Design, development and testing of full-stack web service for a trajectory computation algorithm • Lastly, Chapter 6, 'Future Work and Conclusions', wraps up the document, outlining potential future work and summarizing the project's conclusions. In terms of references, this document is divided into two sections for clarity and ease of access. The 'Bibliography' section lists academic and technical references, such as articles, books, and technical documents. These are numbered with square brackets like so: [1], [2], [3], etc. The 'Useful Links' section lists additional online resources that have been consulted during the development of this project. These are also numbered but in a slightly different format: [‡1], [‡2], [‡3], etc. This distinction ensures that both types of resources are easily identifiable throughout the document.
10 Design, development and testing of full-stack web service for a trajectory computation algorithm 1.2.2. Client-Side Technologies In this section, we'll delve into client-side technologies that are crucial to the design and functionality of any web application. We'll discuss frontend programming languages and make a final decision on which technology best suits our needs. 1.2.2.1. Frontend languages for Web Development In web development, the frontend is the visible part of the platform where users interact and access content, therefore, the frontend is made up of all client-side technologies. An ideal user experience, immersion, and usability are some of the goals that a good frontend developer strives for, and in the modern era, there are a wide variety of frameworks, preprocessors, or libraries to help you achieve them. That is why, in this section, we will analyze and compare some of the main technologies that currently exist to develop a high-quality frontend. By doing this, we will be able to choose the most appropriate technology according to our case. Any web page on the Internet is built, at a minimum, by HTML [‡22] (a markup language) and CSS [‡23] (a style language). HTML defines the meaning and structure of the web content while CSS allows you to style the page and build a more pleasant visual interface for the user. However, using only and exclusively HTML and CSS on a page, limits us considerably. Although it is true that with these two languages we can do a wide range of things, there are others that would be totally impossible, or at least much easier to do if we had a programming language. This is where JavaScript [15] and TypeScript [16] come in, the leading programming languages in web development. These languages are responsible for providing interactivity to development, programming the behavior of the elements to provide dynamism to the interface. Create animations, objects, cookies, data validation in the forms, etc. In addition to the programming languages that define the "language" and how the code will be written, it is important to highlight the importance of development frameworks. A series of pre-written tools and libraries that make everyday tasks easier for developers to avoid running them from scratch. Therefore, it may be claimed that libraries oversee finding solutions by making the code more readable, whereas frameworks provide a framework for programming in a particular language. Next, we analyze the most used frameworks currently. We have considered two libraries based on JavaScript: React [‡24] and Vue.js [‡25]. • React: React, developed, and maintained by Facebook, is a JavaScript library for building user interfaces, especially single-page applications. It allows developers to create large web applications that can change data without reloading the page. One of React's unique features is the virtual DOM which enhances performance by limiting direct manipulation of the DOM and batch updating. However, it often requires additional libraries to develop more complex applications.
Overview and used technologies 11 • Vue.js: Vue.js is a progressive JavaScript framework used to create user interfaces. It is designed to be incrementally adoptable, making it easy to integrate with other libraries or existing projects. Vue.js also emphasizes a flexible architecture that allows the application to scale between a library and a full-featured framework. Its simplicity and smaller size make it quicker and easier to learn than Angular or React. We have considered Angular [‡26] as the library based on TypeScript: • Angular: Angular, developed by Google, is a TypeScript-based opensource framework that enables the development of single-page applications. Angular provides a robust framework that supports a wide array of features like two-way data binding, dependency injection, and declarative templates. Although powerful, Angular has a steep learning curve, and its performance can be slower compared to Vue and React. An overview table of the benefits and drawbacks of different technologies has been created to aid in thorough comprehension and to help an informed decisionmaking process. Table 1.1. Advantages and disadvantages of frontend technologies Technology Advantages Disadvantages React Popularity: React is one of the most popular JavaScript frameworks on the market, which means there are plenty of resources available online and plenty of experienced developers available. Integration with other Facebook products: React is a Facebook product, which means it is integrated with other Facebook products like GraphQL. Customization – React offers a great deal of freedom for developers to customize and build apps to fit their specific needs. Complexity – React can be a more complex framework and can have a tougher learning curve than Vue. Lack of features: React is a simpler framework and focuses on views, which means that it may be missing some features that are available in other frameworks. Ease learning: Vue has a simple and easy to understand syntax, which means that developers can start developing applications quickly. Less popular: Although Vue is a popular framework, it is still not as widely used as React or Angular. This means that there may be fewer online resources available and
12 Design, development and testing of full-stack web service for a trajectory computation algorithm Vue.js Performance: Vue is a very lightweight framework and has been optimized for fast and smooth performance. Community: The Vue community is very active and constantly growing, which means that developers can easily find solutions to problems, tutorials, and documentation online. Flexibility: Vue is highly customizable and flexible, which means that developers can build applications that fit their specific needs. fewer experienced developers available. Less maturity: Since Vue is a newer framework, it may not be as mature as React or Angular and may not have all the features and tools that these frameworks offer. Angular Lots of features: Angular is a very mature framework and offers a lot of features and tools for developers. Popularity: Angular is one of the most popular JavaScript frameworks on the market, which means there are plenty of resources available online and plenty of experienced developers available. Integration with other Google products: Angular is a Google product, which means it is integrated with other Google products like Firebase. Although the other frameworks can also be integrated. Complexity: Angular is a very complex framework and can have a harder learning curve than Vue or React. Performance: Angular can be heavier and less resource efficient than Vue or React. While libraries like React, Vue, and Angular form the structure and logic of our front-end, styling frameworks give it the polished, professional look and feel. Styling frameworks provide ready-to-use CSS components that we can use to design our user interface. Some of these frameworks are: • TailwindCSS [‡27]: Is a utility-first CSS framework. Unlike other CSS frameworks that provide pre-designed components, Tailwind allows developers to create custom designs without leaving their HTML file. Tailwind doesn't come with a pre-built set of themes. You can customize your design as you wish. Since you don't have to switch back and forth between different files, using this framework can lead to faster development. • Bootstrap [‡28], on the other hand, is the most popular CSS framework. It provides a series of ready-made components such as navbars, modals, or cards that you can use straight out of the box. Thus, this framework allows developers to ensure consistency regardless of who's working on the project.
Overview and used technologies 13 There are also alternative CSS frameworks, including Semantic UI [‡29], Foundation [‡30], and Bulma [‡31]. Each has its own unique features and advantages, but they all aim to speed up the development process and make web pages look good and work well. 1.2.2.2. Final decision for client side The appropriate technological stack must be chosen in order to meet the project's unique requirements. Vue.js was consequently selected as the front-end framework because of its flexible and adaptable structure. The learning curve for Vue.js is known for being low, especially when compared to rival frameworks like React and Angular. This results in quicker acceptance, simpler coding, and therefore more effective project development. Furthermore, Vue.js has a solid reputation for adaptability, enabling it to be smoothly integrated with other libraries or ongoing projects. This adaptability is especially helpful in our case because the Web Service we are developing might need to interface with some software programs to do computations and trajectory improvements. Moving to styling frameworks, TailwindCSS is our choice because it strikes a balance between customization and speed. Tailwind CSS enables the opportunity to make unique designs without leaving the HTML file, in contrast to other CSS frameworks that impose specific design decisions. By combining Vue.js and TailwindCSS, we are setting up our project with a powerful, yet flexible technological foundation. While TailwindCSS provides the effectiveness and complete flexibility needed to build a specifically designed, responsive user experience, Vue.js offers the adaptable structure and ease-of- use we require. Fig. 1.3 Vue.js and Tailwind CSS logos
14 Design, development and testing of full-stack web service for a trajectory computation algorithm CHAPTER 2. ANALYSIS OF REQUIREMENTS The aim of this chapter is to delve into the process of requirement gathering and analysis that was critical in shaping the Dynamo Web Services project. Understanding the requirements is fundamental to the success of any software development project. It is the foundation upon which the design and development phases rest. Therefore, thorough analysis of the project requirements ensures that the developed software effectively meets the needs it was designed for. In this chapter, we initially explore the different methods employed for requirements gathering (Section 2.1), highlighting the most important ones. Subsequently, the outcomes from the Requirements Gathering Session (Section 2.2) are presented, followed by a discussion on the emergence of new requirements as the project evolved (Section 2.2.1). Through the course of this chapter, the readers will gain an understanding of the integral role that requirements analysis plays in software development, and how it has directly contributed to the development of the Dynamo Web Services project. 2.1. Dynamo Software To manage configuration settings for each simulation, it uses XML files. These XML files offer a powerful yet adaptable system to handle various flight parameters. This project's focus extends to these Dynamo configuration XML files, which contain seven main blocks: <description>, <output>, <paths>, <logger>, <flight>, <ATM>, and <weather>. Understanding these blocks is essential as they are the foundation of our project's functionality, which involves adjusting the configuration file values to set up the simulations. Therefore, a deep understanding of how the Dynamo configuration files operate is crucial to the successful implementation of our web service. A snapshot of the structure of these XML configuration files is given below (see figure 2.1):
Analysis of requirements 15 Fig. 2.1 Example of configuration XML file • <description>: Contains a string that provides a brief description of the simulation setup or any other relevant information. • <paths>: This section consists of different paths that Dynamo will use to find the input datafiles and write the outputs. Key elements include: o <output>: Path to store the output files of the simulation. o <logger>: Location where the logger should write its output files. o <aircraft>: It contains paths to two critical components:
16 Design, development and testing of full-stack web service for a trajectory computation algorithm ▪ <APM>: Path to Aircraft Performance Models. ▪ <BADA4>: Path to Base of Aircraft Data (BADA), a comprehensive model of aircraft performance. The version attribute here specifies the version of BADA to be used. o Other paths specified include lateral and vertical flight plans (<route> and <profile>, respectively), meteorological data (<grib>, <NetCDF>), data for navigation (<graph>, <sectors>) and others. • <logger>: This block provides options for the level of detail to be logged during the simulation. The more detailed the logger configuration, the more insights can be gained about the simulation run: o <log_id>: A string identifier for the logger. o <max_log_level>: Specifies the maximum log level (FATAL, ERROR, WARNING, INFO, LOG, DEBUG, TRACE). o <terminal>: Configuration for logging to the command terminal. o <file>: Configuration for file logging, with separate instances for different types of logs. • <output>: Specifies the output files generated by the simulation: o Each type of output (e.g., <KML>, <FDR>, <vertical_meteo>) has specific attributes and nested elements to define the output file, whether a post-processing script should run on it, and the verbosity level of the data. • <flight>: Encapsulates flight-specific parameters, such as: o <ID>: Unique identifier for the flight. o <callsign>: The callsign for the flight. o <aircraft>: Contains details about the aircraft used for simulation. o <lateral> and <vertical>: Specify the paths to the flight plan files, as well as other options for route and profile. o <cost>: Holds parameters used to configure the cost function for the flight. • <ATM>: Details about Air Traffic Management. The nested <ASM> (AirSpace Management) block contains <lateral> and <vertical> blocks to specify air traffic management details for each flight profile phase (climb, cruise, descent). • <weather>: Configures the meteorological conditions for the simulation: o <atmosphere>: Specifies the atmospheric model, as well as the associated data sources. o <winds>: Specifies the winds model, as well as the associated data sources. o <origin> and <destination>: Configure weather conditions (QNH, transition level) at the departure and arrival airports. These seven blocks constitute the fundamental structure of the Dynamo configuration XML files. It's through the manipulation of these elements that users can set-up the simulations to their exact requirements, giving Dynamo its flexibility and adaptability. Dynamo requires a set of specific inputs to operate optimally (see figure 2.2). These include aircraft performance data, which consists of mathematical models that describe the forces acting on the aircraft, such as thrust, drag, and fuel flow.
Analysis of requirements 17 This data can be sourced from various places, like the Base of Aircraft Data (BADA) [17] or directly from flight tests. In addition to performance data, Dynamo utilizes weather data, either in the form of standard atmospheric models like the International Standard Atmosphere (ISA) [18] or real-world weather data in GRIB (GRIdded Binary or General Regularly-distributed Information in Binary form) [19] format. Operator parameters are also a crucial part of the inputs Dynamo needs. These parameters reflect the relative importance of time and fuel costs and include the cost index, payload, and flight plan. Furthermore, Dynamo requires Concepts of Operation (ConOps) [23] inputs, both horizontal and vertical, which specify how the lateral route and speed, and altitude profiles are to be generated. Once these inputs are processed, Dynamo's advanced algorithms generate optimized flight trajectories. It employs a lateral and vertical profile prediction/optimization module to calculate the optimal route and vertical profile. The process involves minimizing a cost function that incorporates fuel, time, and route charges. Fig. 2.2 DYNAMO architecture [1] Dynamo's capabilities have been demonstrated in a variety of applications and assessments. For instance, in the APACHE Project [24], it was used to create realistic traffic scenarios for various vertical and horizontal ConOps using realistic aircraft performance models and weather data. Over one million trajectories were optimized, showcasing Dynamo's scalability and computational efficiency. In the FASTOP Project, Dynamo was used for real-time on-board optimization during Continuous Descent Operations (CDO), demonstrating its versatility and practical applicability. The software was embedded on-board a research flight management system (FMS), where it computed optimal vertical profiles while satisfying ATC time constraints and standard operational procedures. [25] Furthermore, an integral part of Dynamo's functioning is its output generation. It provides comprehensive reports containing the predicted and optimized flight trajectories, including altitude and speed profiles, fuel usage, and other essential
18 Design, development and testing of full-stack web service for a trajectory computation algorithm flight parameters. This data proves to be invaluable for further analysis and decision-making. In conclusion, Dynamo is a sophisticated and comprehensive tool, developed to optimize and predict flight trajectories. Its ability to handle a vast range of inputs, perform complex calculations, and generate detailed outputs makes it an invaluable asset in air traffic management research. While this document will not delve into the intricate details of Dynamo's operation, it emphasizes understanding its configuration process. Our goal is to create a web service that allows users to configure, run, and manage their simulations seamlessly and efficiently. The mechanisms of these configuration files, particularly the seven blocks mentioned above, will be discussed in detail throughout this document. 2.2. Requirements gathering methods Gathering requirements is a crucial phase in software development, since it allows us to identify and understand customer needs to ensure that the final product meets their expectations. Some of the most used methodologies [‡32] for gathering requirements for a software development project are described below. [‡33] • User Participation Requirements Analysis: This approach focuses on directly involving the user in the requirements gathering process to ensure that their needs are understood and considered. • Use Case Based Requirements Analysis: This method focuses on describing how a user will interact with the software through detailed scenarios called "use cases". • Model-Based Requirements Engineering: This methodology is based on the creation of visual models that represent the requirements and allow a better understanding and communication between team members and the client. • Prototype-Based Requirements Analysis: This approach focuses on creating basic prototypes that illustrate how the software will work and allow the customer to visualize and validate their requirements. • Brainstorming Requirements Gathering: This methodology is based on the idea that the generation of ideas and solutions can be improved through dialogue and group collaboration. The BRG process typically begins with a brainstorming session where the development team, customers, and stakeholders come together to discuss and brainstorm software requirements. During the session, participants are encouraged to share their ideas without judging or censoring others' suggestions. Once the ideas have been generated, the team categorizes, groups, and prioritizes them to determine the most important and urgent requirements. The team
Analysis of requirements 19 then creates a detailed plan for the development and implementation of each requirement. The BRG is an effective way to involve stakeholders and customers in the requirements capture process, which can improve understanding and satisfaction with the final product. However, it can also be an intensive process in terms of time and resources, and it can be difficult to ensure that all ideas are objectively considered and prioritized. [26] Focusing on what large development companies use, it's hard to say for sure exactly what requirements capture methodologies are being used, as this can vary depending on the project and company in question. However, we also found another type of methodology, apart from those already described above, that is commonly used in the software development industry: Agile and Scrum methodologies. The Agile [27] methodology is an iterative and adaptive approach to software development that focuses on collaboration and the continuous delivery of small functional pieces of software. The agile methodology was formally introduced in 2001 with the publication of the Agile Manifesto [‡34] and has become increasingly popular in the software development industry. Agile methodologies are based on the following values and principles: • Individuals and interactions over processes and tools • Software working on exhaustive documentation. • Collaboration with the client on contract negotiation • Reaction to changes on follow-up to a plan. In an agile project, the development team works in short, regular sprints, delivering small, functional increments of the software rather than waiting for a complete product before delivery. This allows for greater flexibility and enables the team to adapt to changing customer needs throughout the development process. Some of the more popular agile methods include Scrum [28], Kanban [29], XP (Extreme Programming) [30], and Lean Software Development [31]. Each agile method has its own unique approaches and practices, but they all share the same basic philosophy of an iterative and adaptive approach to software development. • Scrum: Scrum is a framework for the management and development of agile projects. It is based on the concept of "sprints" or work cycles of a fixed duration and on constant collaboration and communication between team members. Scrum has well-defined roles, such as Product Owner, Scrum Master, and Development Team, and uses several artifacts, such as the Product Backlog and Sprint Backlog, to organize work and ensure that it is moving in the right direction. correct. • Kanban: Kanban is a visual management system used to optimize workflow in an agile project. Use visual dashboards that show the current status of tasks and limit the amount of work in progress to reduce wait time
26 Design, development and testing of full-stack web service for a trajectory computation algorithm Fig. 2.7. Mockup 2 2.3.1. Results of the session Following the session, we were able to compile a comprehensive list of various requirements that will be considered and prioritized based on their importance. There were also certain topics that needed further discussion as they were not completely clarified, such as the decision on whether there would be premium features, that is, those functions for which one would need to pay or subscribe. 2.3.1.1. Initial interview Regarding the initial interview, we garnered several key insights: • There will be free functions. • The primary language of the website will be English, although the possibility of translating it into other languages, such as Catalan, was also considered. • All users will need to register. • There will be different types of licenses, for example: o Providing access for only 200 trajectories. o Providing access only for simulations with a specific airplane model. o Licenses with a start and end date. • Help tools, a Help section, or features like hovering the cursor over the data input window to provide basic information will be incorporated.
Analysis of requirements 27 • There might be some demonstrations through videos. • When entering the website to create a new simulation, some default example data will be selected. • There will be basic and advanced users. • Notifications will be sent to users when their simulations are complete (for example, an email to the user). This option is considered especially for batch processing or when a user has simulated X number of trajectories. Users will be able to configure notifications and decide when to receive them. • A contact section will be included. • Users can access previous simulations and, additionally, if they have not finished configuring something, it can be saved so they can complete it when they log back in. This feature does not apply to free users. • WARNINGS: These would serve to double-check user decisions, for example: "Are you sure you want to conduct this simulation with this airplane?" before executing the simulation. During the interview/discussion, various themes and requirements emerged, which we later sorted into sections and clarified some ideas during the subsequent part (the brainstorming with post-it notes). Everyone was able to post their personal ideas on the whiteboard, which we then collectively discussed. 2.3.1.2. Brainstorming Continuing with the session, regarding the brainstorming and the part of the post it (see figure 2.8), these are the requirements that we collected: Fig. 2.8. Whiteboard with post its during brainstorming
28 Design, development and testing of full-stack web service for a trajectory computation algorithm Inputs: • A button at the top to switch to META mode (batch simulation mode) -> Individual simulation, batch simulation.This means that at the top of the page, users have the option to choose whether they want to perform an individual simulation, a batch simulation, or an all.ft simulation. Depending on the chosen option, different features will be displayed on the screen. • Advanced and Simple User: Advanced or simpler settings. Advanced options are not initially displayed; they can be found on a separate tab or by clicking a button. • Option to upload XML directly (advanced). • When selecting an airplane model, a picture and relevant information should be displayed. • Upload any file (weather data, etc.). • Allow graphs and weather data from different geographic areas. • Responsive web: adaptable to smartphones, iPads. • Edit Route. • Weather files, pre-loaded. Outputs: • Select the desired output. Choose which results we want to obtain. • Route with Google Earth, API: on the same website with tabs. • Include the usual graphs. (Option to export data) • Interactive graphs. • Interactive graphs that can be moved. • Map with layers for drawing airways, weather data, sectors. Simulations: • Modes: dispatch, in-flight (you must enter the airplane's weight), optimize, TP (depending on the choice, different inputs are required). • META mode (list of flights) [configure warnings, e.g., send me an email every 10k]. • Visual management, errors, fatal, info. Graphically see which errors have occurred. • Save simulations. • List of inputs - "MICRO BATCH". Ability to send a list of inputs to simulate different simulations at once. • View the status of simulations. • Notifications and email when finished. • Folder explorer with each user's info • DEBUG MODE depending on the user (to choose the logger level). Documentation
Analysis of requirements 29 • Completed and explained examples: optimization example, other examples (to have a default one). • Contact section. • Credits section. • HELP section manual. • Educational explanations / potential student users -> have a section on how things are calculated. • Feedback, bugs, new feature request. Users • All users register and login. • Permissions to see logger level. • Activate features according to licenses: batch mode, etc. • Licenses linked to the use of modules: only being able to make 100 trajectories or only being able to use a type of airplane. • Educational licenses, from one date to another. • User folder management. • Certain users can upload their models: APM, weather data (Advanced). • Video or demo before registration. • Register and get a free month. Following the above list of requirements, it's crucial to note that this does not imply that all these ideas will be implemented as part of the final product. This session was an open forum for brainstorming, where everyone could share their ideas to provide a comprehensive vision of possible features. The goal was not to commit to every proposal, but to stimulate creative thinking and explore a broad range of possibilities. It was expected that some of these initial ideas will change over time, reflecting the dynamic nature of product development. This reflective process was made explicit during a second session that we held with the entire Dynamo team several months later. This follow-up session served as a critical milestone in our project timeline, providing us with a clear sense of our accomplishments and highlighting the objectives that still needed to be addressed. Interestingly, this session also sparked the emergence of new objectives that were not identified in the initial brainstorming. Furthermore, it's worth mentioning that our weekly technical meetings have been instrumental in this ongoing development process. They have not only allowed for continuous feedback but also provided an opportunity to bring up new requirements that were not initially considered. Conversely, these discussions have also led to the reevaluation and sometimes dismissal of some of the initial requirements.
30 Design, development and testing of full-stack web service for a trajectory computation algorithm Besides, a dedicated section detailing our results will be provided in the Results chapter. This section will specifically enumerate the requirements that have ultimately been met, serving as evidence of what we have achieved throughout our project development. 2.3.2. Emergence of new requirements Over the course of a software development project, it is typical for new requirements to emerge as the project evolves, and the team becomes more familiar with the user needs and the capabilities of the software. This is a natural part of the Agile development process, which encourages the ongoing refinement of requirements based on feedback and insights gained throughout the project. After several months into the development of Dynamo Web Services, and following many weekly technical meetings, the entire team convened for a comprehensive review session. This meeting was designed to assess the progress made, review the implemented requirements, and discuss any necessary adjustments to the project's direction. A demonstration of the current system was conducted to provide a tangible understanding of its functionalities and interface, and it was during this demo when new requirements started to surface. These were essentially enhancements and modifications that were not originally anticipated but were recognized as valuable additions to improve the system's usability, efficiency, and overall user experience. The newly identified requirements that emerged from this interactive session were as follows: 1. Stop Simulation Button: The user's need for control over the simulation process was underscored with the requirement of a function to interrupt a running simulation. The ability to halt the computational operation at any time gives the user additional flexibility and authority over the process, enhancing the interactive nature of the system. 2. Asynchronous Simulation Execution: Another pivotal requirement that emerged was the capability for asynchronous execution of simulations. It became evident that such a feature would significantly augment the system's computational efficiency and would allow for better utilization of resources. It was suggested that the system should support running up to five simulations simultaneously, a number arrived at considering the tradeoff between computational load and performance. 3. Dynamo Execution Option: An interactive element for choosing the desired execution option for Dynamo - c3po or r2d2 - was identified as a necessary feature. By providing this choice through a simple user interface component like a radio button, users can customize their simulations according to their specific needs without wrestling with complicated configurations. 4. Mandatory Form Fields: To enhance the robustness of the simulation configuration process, it was suggested that all form fields should be marked as required. This feature ensures that simulations are only initiated
Analysis of requirements 31 when all necessary information is provided, thereby avoiding potential errors or inconsistencies due to incomplete or incorrect data. 5. Email Notifications: The final new requirement identified during this session was the ability for the system to send out email notifications upon completion of simulations. This feature, intended to enhance user convenience, would allow users to be notified as soon as their simulations are ready, eliminating the need to continuously check the system for results. Users could choose to enable or disable these notifications as per their preference via a checkbox in the application. These emergent requirements underscored the importance of regular review sessions, as they provided an opportunity to reassess the project's direction based on practical, hands-on experience with the system. In response to these newly identified needs, the project team had to adapt their approach and incorporate these additional features into the development process. As a closing remark, it is important to note that the aforementioned points represent proposals for new requirements and do not mean that the final result of the project has fulfilled 100% of these proposed requirements. The extent to which these proposed requirements have been met will be evaluated throughout the course of this document and finally assessed in the Results chapter.
32 Design, development and testing of full-stack web service for a trajectory computation algorithm CHAPTER 3. BACKEND This chapter focuses on the design and implementation of the backend architecture for Dynamo. The backends’ primary role is to manage simulation creation and configurations, handle user interactions, and maintain a specific file structure for storage and retrieval of simulations. 3.1. Backend Design The design of the backend is primarily focused on effectively managing users and simulations. These two integral aspects of the system function in tandem to provide the necessary services to the Dynamo tool. 3.1.1. User Management System The User Management System is designed around a specific structure in the MongoDB database (see figure 3.1). For each user, the following details are stored: • User ID: A unique identifier automatically generated for each user. • Username: The chosen username of the user, a unique field that differentiates each user in the system. • Email: The user's email address for potential communication and notification purposes. • Simulations: An array storing the unique identifiers of the simulations associated with the user, aiding in efficient retrieval and linkage of userspecific simulations. • Role: Indicates the user's role within the system. This could be 'user' for a regular user or 'admin' for an administrator who has additional privileges, such as managing other users. • Permissions: Defines the user's system permissions, which could be 'basic_user' or 'advanced_user'. A basic user has access to the standard functionality of the system, while an advanced user enjoys additional features such as uploading their own XML configuration files. • Password: The user's password, securely hashed and stored for ensuring privacy and security. The structure of the User Management System allows the application to handle all user-related actions efficiently and maintains the integrity and security of the user data.
Backend 33 Fig. 3.1. A user on the database 3.1.2. Simulation Management System In parallel to user management, the Simulation Management System plays a vital role in handling the core functionality of the Dynamo tool. Each simulation is represented in the MongoDB database with the following structure (see figure 3.2): • Simulation ID: A unique identifier assigned to each simulation. • Name: The name assigned to the simulation by the user. • User ID: The unique identifier of the user who initiated the simulation, linking the simulation to the specific user. • Status: Indicates the current status of the simulation, which can be 'configuring', 'running', 'completed', etc. • Creation Date: The timestamp indicating when the simulation was created. • Description: A brief user-generated description of the simulation. • Dynamo Version: The version of Dynamo used for the simulation. • Hachi: The identifier for the specific version of Dynamo's internal solver used in the simulation. • Permissions: Any permissions associated with the simulation. • Parameters: Various parameters essential for the configuration and execution of the simulation. The parameters include specific settings and options required by Dynamo for accurately configuring and running the simulation. These parameters define output preferences, flight and ATM configurations, weather, and route configurations, as well as initial conditions. These are captured from user inputs and are used to generate the necessary XML configuration files that Dynamo requires to perform its calculations and optimizations.
34 Design, development and testing of full-stack web service for a trajectory computation algorithm Fig. 3.2. A simulation on the database 3.1.3. File Management System Our project relies on a well-organized directory structure to manage simulations, user data, code, configuration files, and necessary utilities for the Dynamo software (see figure 3.3). The structure of directories and subdirectories is of utmost importance for efficient data management and easy access to necessary files. The following provides a detailed description of this hierarchy: The root directory of our project is called 'web-icarus'. Within web-icarus, there are several subdirectories designed to separate different types of data and functionality. 1. The 'admin' directory: Currently, this directory is reserved for future functionalities. Its primary purpose is to store files or utilities that may be useful for administrative tasks. 2. The 'cases' directory: This directory is used to store and manage the simulations created by the users. For each user, a unique directory labeled as 'USER_{username}' is created. Within this user-specific directory, individual simulation directories are created with the naming convention
Backend 35 '{creation_date}_{simulation_id}'. Each of these simulation directories further contain three subdirectories: o 'config': This subdirectory stores the configuration file for each specific simulation. The user will modify this file to set up the simulation as per their requirements. o 'log': This is where Dynamo's log files generated during a simulation run are stored. o 'output': Upon completion of a simulation, Dynamo generates output files that are stored here. This ‘cases’ folder also contains the config xml template files that will be used to create the simulations of these users. 3. The 'code' directory: This directory houses the code repositories for both the frontend and backend of the application, namely 'kokyaku' for frontend and 'oshiri' for the backend. 4. The 'config' directory: This directory stores the configuration files for the backend, frontend, and database. These include details like paths and ports for connections. 5. The 'data' directory: This directory is used to store data files necessary for Dynamo's simulations. These can include meteorology files, aircraft APM files, among others. 6. The 'releases' directory: This directory stores the release files for both Dynamo and additional utilities for running Dynamo, located in 'common'. 7. Finally, the 'user_data' directory: This directory is specifically for storing files uploaded by the users and moving the deleted simulations of the users. In summary, our directory structure is designed to compartmentalize different types of data and files required for user simulations and the functioning of our application, while ensuring easy access and efficient management. The subsequent sections will dive deeper into how these design decisions were realized into a fully functional backend system. They will explore the practical application of the design, discussing how the chosen technologies were employed to create an efficient backend system.
42 Design, development and testing of full-stack web service for a trajectory computation algorithm The from_dict method creates a user object from a dictionary. This is used when retrieving user data from the database. Finally, the save method saves the User object to the MongoDB database. Fig. 3.9. User’s models.py file. Part 4 The get method retrieves a user from the database using their _id and the get_by_username using their username. We have also get_by_email and get_all users. Finally, this file also has methods for deleting the user from the database, the check_password method, which checks whether the provided password matches the hashed password in the database and the get_user_id method retrieves the _id of the user from the database, which is used as a unique identifier for each user. 3.2.2.2. Controllers.py The controllers in our application handle the interactions between the user and the system, taking user inputs, manipulating the data as required, and then sending a response back to the user. For our user management system, the controller primarily provides the routes for user registration, authentication, and updates, as well as managing user permissions. The controllers.py file is where the application routes and their corresponding handlers are defined. Flask-RESTx, an extension for Flask that adds support for quickly building REST APIs, is being used to manage these routes and responses. Here we go through the controllers.py file (see figure 3.10).
Backend 43 Fig. 3.10. User’s controller.py file. A namespace is created for our user-related routes. This makes it easier to organize and manage routes and allows for logical grouping of related routes. The user_model object is defined, which represents the structure of a user. The fields of the user_model correspond to the properties of our User class. A parser is created to get the "Authorization" header from incoming requests. This is used for token-based authentication. Thereafter, various routes are defined: 1. User Registration: A POST route at the / endpoint is created to handle user registration. This route receives a request with the new user's details, creates a User object with those details, and saves the object to the database. The same endpoint but using a GET route, list all registered users (see figure 3.11). Fig. 3.11. User’s controller.py file. Endpoint to create a new user
44 Design, development and testing of full-stack web service for a trajectory computation algorithm 2. Admin Registration: A POST route at the /admin endpoint is used to create an administrator user. 3. User Permissions Updating: A PUT route at the /[username]/permissions endpoint is used to update the permissions of a user. 4. User Detail Retrieval: A GET route at the /[user_id] endpoint is used to retrieve details of a specific user. 5. User Login: A POST route at the /login endpoint is used to authenticate a user and provide a token for further access to protected routes (see figure 3.12). Fig. 3.12. User’s controller.py file. Login endpoint. 6. User Update & Deletion: PUT and DELETE routes, at the /[username] endpoint, are used to update and delete a user, respectively. 7. User Authentication: A GET route at the /auth endpoint is used to verify a user's authentication. 8. Simulation List Retrieval: A GET route at the /[user_id]/simulations endpoint is used to retrieve a list of a user's simulations. 9. Protected Route Access: A GET route at the /protected endpoint checks if the current user is authenticated.
Backend 45 3.2.3. Simulation Management System The Simulation Management System is responsible for handling the creation, storage, retrieval, and manipulation of simulation data. This part of the system would manage different simulations that users might create and store in the system, including their various parameters, statuses, and related information. 3.2.3.1. Models.py In our simulation management system, each simulation is represented as an instance of the Simulation class, defined in our models.py file (see figure 3.13). Fig. 3.13. Simulation’s model.py file. The Simulation class is initialized with several attributes: name, user_id, status, created, description, dynamo_version, hachi, permissions, and parameters. These attributes store information about the simulation. Similar as we do with the users’ controllers, we have several methods: • The save method is used to save a simulation to the database. The insert_one function from PyMongo is used to insert the simulation's dictionary representation (self.__dict__) into the 'simulations' collection in the database. • The from_dict method takes a dictionary and returns a Simulation object with attributes set based on the dictionary. • The get method retrieves a simulation from the database using its ID. • The get_by_user_id method retrieves all simulations for a specific user from the database using the user's ID. • The get_all method retrieves all simulations from the database.
46 Design, development and testing of full-stack web service for a trajectory computation algorithm • The update_status method updates the status (configuring, running, completed) of a simulation in the database using the simulation's ID and the new status. • The update_parameters method updates the parameters of a simulation in the database. This is thought to be used when a user is configuring a simulation and modifying some parameters, such as the Flight configuration, ATM configuration, etc. • The delete_simulation method deletes a simulation from the database using the simulation's ID. • The to_dict method converts a Simulation object to a dictionary. • The get_simu_id method returns the simulation's ID as a string. 3.2.3.2. Controllers.py The simulation controller (see figure 3.14) is responsible for managing the creation, retrieval, and deletion of simulations. More generally, the business logic associated with simulations is handled here. Each method within this controller interacts with the database and carries out CRUD (Create, Read, Update, Delete) operations on simulation data. Fig. 3.14. Simulation’s controller.py file. This sets up a namespace for all simulation-related routes under "/simulations". All routes in this namespace will be prefixed with "/simulations". Simulation and parameters model definitions are schemas for simulation objects and their parameters. They are used to validate incoming data when creating a new simulation. In the same way as with the user controllers here we also have different resources to manage the routes. 1. SimulationList resource: This class is used to handle GET requests to "/simulations". It retrieves and returns all simulations from the MongoDB database.
Backend 47 2. createSimulation resource (see figure 3.15): This class is used to handle POST requests to "/simulations/string:user_id/new", where <string:user_id> is the ID of the user who owns the simulation. It receives data from the request, validates it against the simulation model, creates a new Simulation object, and saves it to the database. It also creates necessary folders and files for the simulation, assigns a dynamo version and a common release, and finally returns the created simulation's ID. This folder creation follows the structure defined in section 3.1.3. Fig.3.15. Create Simulation Resource
48 Design, development and testing of full-stack web service for a trajectory computation algorithm 1. getSimulation resource: This class is used to handle GET requests to "/simulations/string:user_id/string: simulation_id/get_one", where <string:user_id> and <string: simulation_id> are the IDs of the user and the simulation respectively. It retrieves and returns the specified simulation. 2. UserSimulationList resource: This class is used to handle GET requests to "/simulations/string:user_id/simulations", where <string: user_id> is the ID of the user. It retrieves and returns all simulations owned by the specified user. 3. deleteSimulation resource: This class is used to handle DELETE requests to "/simulations/string: user_id/string: simulation_id/string: created", where <string: user_id>, <string: simulation_id> and <string: created> are the IDs of the user, the simulation, and the created timestamp respectively. It moves the simulation's directory to a "deleted_simulations" directory and then deletes the simulation from the database. 4. SimulationThread class (see figure 3.16): This class inherits from threading.Thread and overrides its run and stop methods to allow the simulation to run in a separate process. It uses the subprocess module to execute the simulation command, and provides a method to terminate the process. This class is especially handy when simulations take a long time to complete and you don't want to block the server. Fig. 3.16. Simulation’s controller.py file. SimulationThread class 5. runSoftware route (see figure 3.17): This endpoint allows the user to run the Dynamo software. This involves locating the correct Dynamo release, updating the simulation status to "running", and starting the simulation in a separate thread. The unique process_id is then returned as a response.
Backend 49 Fig.3.17. Run Software Resource
50 Design, development and testing of full-stack web service for a trajectory computation algorithm 6. stopSoftware route (see figure 3.18): This allows the user to stop a running Dynamo software process by providing the process_id. It fetches the corresponding process and stops it, also updating the simulation status back to "configuring". The process is then removed from the processes dictionary. Fig. 3.18. Stop Software Resource 7. SimulationStatus route: This route provides the current status of a simulation. 8. uploadXML route (see figure 3.19): This route lets the user upload an XML configuration file for the simulation. The file is saved to a specific location. Fig. 3.19. Upload XML Files Resource
Backend 51 9. uploadMultipleFiles route: This endpoint provides the functionality to upload multiple files at once. The files are stored in a dedicated directory. 10. replaceXML route: This route is used to replace specific keywords in an XML configuration file with the user-defined parameters. 11. downloadZIP route: This route enables users to download a ZIP file containing the results of a simulation. The results are zipped up into a single file which can be downloaded by the user. 12. getImages route: This endpoint is used to fetch all images resulting from a simulation. These images are returned as base64-encoded strings that can be decoded and displayed on the frontend. 13. MeteoFiles route: This route returns a list of all the meteorological files available in the "meteo" directory. 14. get_config_files route: This route allows users to fetch the configuration files for a simulation. The filenames are returned as a list. In summary, this simulation controller provides a comprehensive set of features to manage and control complex simulations. It provides users with the ability to initiate and stop simulations, check the status, upload necessary configuration files, replace parameters, and finally fetch and download the results. 3.3. Swagger Swagger is a powerful tool for designing, building, documenting, and using RESTful web services. It can automatically generate an interactive user interface that represents your application's API documentation. This documentation includes all information about the routes, methods, parameters, responses, and other details of your APIs. Thus, to conclude the backend section, it's important to note that Dynamo Web Services provides the added convenience of a built-in Swagger UI. This allows for a streamlined, interactive exploration of the APIs exposed by the backend. In order to access the swagger, once the application is running locally, simply navigate to http://localhost:5000/. This will open up the Swagger interface (see figure 3.20), a window into the inner workings of the application's APIs, straight from your browser.
58 Design, development and testing of full-stack web service for a trajectory computation algorithm in line with the general objectives of our application. As we move forward into the implementation details in the next sections, we'll see how these design considerations materialized into a functional user interface. 4.2. Frontend Implementation As we transition from the design phase into the implementation one, we turn our attention to the means and methods used to bring the design concepts to life. The frontend implementation is where the aesthetics meet functionality, and our design concepts materialize into a tangible, interactive platform for our users. For this project, I used a template provided by JustBoil.me as a foundation. JustBoil.me is renowned for its high-quality, modern, and responsive templates that provide an excellent starting point for web projects. The particular template used for this project came bundled with a host of pre-designed components, such as buttons and cards, easing the process of development by providing a head start. This template is available under the MIT License, a permissive free software license. This means that it can be freely used, modified, and shared, allowing us flexibility in tailoring the template to meet our specific requirements and ensuring that no licensing issues hinder our project's progression. In the following sections, we will go into more detail about the specifics of how this template, along with the power of Vue 3 and Tailwind CSS, were used to build the User Management System and the Simulation Management System. We will also explore how these tools and resources allowed us to implement the design considerations discussed earlier, ultimately leading to a frontend that is both pleasing to the eye and practical to use. 4.2.1. Code structure The frontend codebase for Dynamo Web Services, residing in the root directory, is composed of a systematic hierarchy of files and folders (see figure 4.4). This structured organization facilitates a clear understanding of the system's flow and contributes to the maintainability and scalability of the software. At the root level of the frontend directory, known as 'kokyaku', we encounter the following significant elements: • node_modules: This directory hosts the Node.js modules - the building blocks of the application, installed via npm (Node Package Manager). These are third-party modules that our application depends upon. • public: This folder contains the static assets that are directly accessible to the public. These are files that do not undergo any kind of processing and are served as they are.
Frontend 59 • src: The 'src' or 'source' folder is where the core application logic resides. It comprises Vue components, routes, stores, and other pertinent code files that define the application. At the top level, the project also contains configuration files like '.editorconfig', '.eslintrc.cjs', 'jsconfig.json', 'postcss.config.js', 'tailwind.config.js', 'vite.config.js', as well as package handling files such as 'package-lock.json' and 'package.json'. Additionally, scripts for installing dependencies and executing the frontend ('install_frontend.sh', 'start_frontend.sh', 'stop_frontend.sh') are placed at this level. Fig. 4.4. Frontend directory structure Delving into the 'src' directory, we find several key files and directories (see figure 4.5): • App.vue: The root Vue component that serves as a starting point for our application. • colors.js, config.js, menuAside.js, menuNavBar.js, styles.js: These files manage various aspects of the application, from colors and styles to configurations and menu structures. • main.js: This is the entry point of our Vue application. Subdirectories within the 'src' directory include: • components: This folder contains reusable Vue components that make up the different parts of the application. • css: All the style sheets related to the application are stored here. • includes: This folder houses any included modules or libraries.
60 Design, development and testing of full-stack web service for a trajectory computation algorithm • layouts: This directory contains layout components that structure the application's UI. • router: This is where we manage application routes using Vue Router. • stores: Here we manage the application's state using Vuex. • views: This folder contains Vue components that correspond to the different views or pages in the application. Fig. 4.5. Source directory This structure forms the backbone of the frontend code for Dynamo Web Services, providing a comprehensive and organized map of our codebase that fosters efficient navigation and development. 4.2.2. User Management System 4.2.2.1. User Authentication process The User Management System is a crucial aspect of any web application requiring user registration and access control. Especially in the context of an API- driven application, the implementation of authentication mechanisms is vital to ensure that sensitive data is protected and that only authorized users have access to it. The entire process revolves around the principle of API authentication, which fundamentally involves verifying the identity of a user or application attempting to access the API. This typically involves the exchange of credentials, such as a username and password, for a unique identifier known as an access token. This token is then used to authorize the user for subsequent interactions with the API. In our application, we have employed the "pinia" package to manage our state and "axios" for handling HTTP requests. To maintain persistence across
Frontend 61 sessions, we save the user's information in local storage and the user's token in cookies (see figures 4.6-4.7). This allows us to authenticate the user even when the page is refreshed, thus improving the user experience. Fig. 4.6. Frontend User store
62 Design, development and testing of full-stack web service for a trajectory computation algorithm Fig. 4.7. Frontend User store. Part 2 The "axios" library simplifies making requests to the API. We create an instance of axios, userApi, which is configured to communicate with our user management backend service, as shown by the base URL of http://localhost:5000/users. Our user store incorporates several state variables to hold user data, such as username, email, role, permissions, user_id, and token. Most of this data is stored in local storage to preserve the user's login state across multiple sessions. The token, which is received from the server upon successful login, is stored as a cookie. This token is included in the Authorization header of subsequent axios requests to the backend. The actions register and authenticate make POST requests to the backend for registering a new user and logging in an existing user, respectively. Upon successful login, the backend returns a JWT token which is stored in a cookie. This token is also set as the default Authorization header for userApi axios instance, thus facilitating secure communication with the backend for subsequent requests. The signOut action clears all stored user data from local storage and removes the JWT token from the cookie. Additionally, it removes the Authorization header from userApi axios instance, effectively logging out the user from the application. JWT (JSON Web Tokens) tokens are used for authentication and user management. JWT is a standard for securely transmitting information between parties as a JSON object. It consists of three parts: a header, a payload, and a signature. The header contains information about the type of token and the algorithm used for signing it. The payload contains the claims, which are statements about an entity (typically, the user) and additional metadata. The signature is used to verify the message wasn't changed along the way and, in the case of tokens signed
Frontend 63 with a private key, to verify that the sender of the JWT is who it says it is and to ensure the message wasn't tampered with. So, here a small schema (see figure 4.8) of how the procedure will be, being the browser our Vue client: Fig. 4.8. Browser-Server communication schema The user only can access our website with a valid token. To verify whether a user is authenticated correctly, we have a route in the API that can be accessed by sending a request with the token inserted in the authentication header. When the token is invalid or has expired (see figure 4.9), this information reaches the Frontend and then the user will not be able to access any more of the application's functionalities. If the token has expired, the user should log in again with their correct credentials to regenerate a valid token. If the token is invalid, surely the user has entered his credentials incorrectly or does not exist in the database, therefore he will not be able to access the web page.
64 Design, development and testing of full-stack web service for a trajectory computation algorithm Fig. 4.9. Response when token is expired To sum up, our User Management System, developed with the help of modern libraries such as axios, and pinia, ensures the persistent and secure handling of user data. Moreover, by efficiently integrating frontend and backend through the use of JWT tokens, we achieve seamless data transmission, thereby providing a smooth and secure user experience. 4.1.1.1. Form Handling and User Profile Moving on to the user interaction part of our application, here we will see form handling and user profile management. The forms in our application are not just simple input fields. They are intuitive, user-friendly, and designed to ensure the integrity of the information provided by the user. To achieve this, the forms implement various levels of error handling and data validation. Fields that are required to create a new user or to authenticate an existing one are marked as 'required', and the form submission process ensures these fields are filled before proceeding. If a user attempts to submit a form with empty required fields, an error message will be displayed, and the form will not be submitted (see figure 4.10). This handling of form errors helps
Frontend 65 guide the users through the process, reduces the likelihood of failed submissions, and enhances overall user experience. Fig. 4.10. Register form Additionally, there are checks in place to prevent the creation of multiple accounts with the same username. When a user attempts to register with a username that is already taken, an error message is triggered (see figure 4.11). This preemptive error management ensures each user has a unique identity in the system and minimizes potential confusion or data discrepancies down the line. Fig. 4.11. Login form A User Profile section is also available to users (see figure 4.12), where they can view their personal data stored in the application, such as their username and email. This data is pulled from local storage, where it was securely stored during the authentication process. The user profile offers a personalized experience for
66 Design, development and testing of full-stack web service for a trajectory computation algorithm users and promotes transparency by letting them view the data associated with their account. There, users can also change or update their username or email. Fig. 4.12. Profile page By integrating intuitive forms with thorough error handling and a comprehensive user profile section, our frontend not only ensures smooth user interaction but also adheres to best practices in user data management. Up next, we will explore another essential aspect of our frontend application, the Simulation Management System. 4.2.3. Simulation Management System 4.2.3.1. Code Given the comprehensive nature of the frontend code for the Simulation Management System, only a specific segment is highlighted here to explain the core logic and behavior. This particular segment focuses on how the system handles the state management of simulation data. The full scope of the frontend code extends beyond this, encompassing the creation and behavior of various interface elements such as buttons, tables, images, and more. This system employs a well-structured state management pattern, leveraging the capabilities of Vuex - a state management library tailored for Vue.js applications. Utilizing the defineStore function from Pinia, a store has been created (see figure 4.13) where the state of the simulation form and its configuration data is maintained.
Frontend 67 Fig. 4.13. Simulation store This state includes a form object which stores general attributes such as the simulation's name, description, selected Dynamo version, and other related properties. Apart from this, there is a formConfig object that encapsulates a more intricate configuration setup for the simulation. This object is divided into multiple sections, each detailing a particular aspect of the simulation configuration such as flight_config for flight specifics, ATM_config for ATM details, and more. On the Vue component responsible for the creation of the forms (see figure 4.14), two-way data binding is facilitated between the store state properties and form input fields using the v-model directive. This ensures a synchronous update between the Vuex store state and form fields, providing an efficient and consistent way to track changes. Whenever a field's value is updated, it gets reflected in the Vuex store state and vice versa. This mechanism, thus, ensures that the state of
74 Design, development and testing of full-stack web service for a trajectory computation algorithm CHAPTER 5. TEST AND RESULTS This chapter provides a detailed analysis of the final results and performance of the system, following the completion of both the backend and frontend development. It outlines the significant outcomes of our development efforts and offers a thorough review of the finished system, focusing on the user interface and experience, responsiveness across various devices, and user-customizable features. Additionally, this chapter discusses the system's alignment with the initial requirements and highlights some of the challenges and bugs encountered during the development process. 5.1. System outcomes In this chapter, we delve into the culmination of all the aforementioned development efforts and discuss the final outcomes of the system implementation, while also addressing the system's adaptability for different devices and screen sizes. In addition, we present the incorporation of user interface customizations such as a 'dark mode' and explore some of the challenges and bugs encountered throughout the development process. Upon successful completion of the frontend and backend development, the Simulation Management System offers a comprehensive dashboard to facilitate the creation and management of simulations. The dashboard provides a seamless and intuitive user experience, empowering users to configure simulations, execute them, and examine the results all within a unified platform. As a modern web application, a considerable emphasis has been placed on ensuring that the interface is responsive, meaning that it adapts to different screen sizes for optimal viewing and interaction (see figure 5.1). Whether accessed from a desktop, a tablet, or a mobile device, the Simulation Management System maintains a user-friendly interface and consistent functionality across all devices. Fig. 5.1. Responsive web
Test and results 75 Another aspect of the interface design is the provision for theme customization, specifically, a 'dark mode' (see figure 5.2). This feature, increasingly popular in contemporary digital platforms, offers an alternative color scheme that can improve visual comfort for users in low-light conditions or those who simply prefer a darker aesthetic for their applications. Fig. 5.2. Dark mode dashboard In the development process, we aimed to strike a balance between functional requirements, user interface design, system responsiveness, and customization features. The outcomes underline the success of the approach taken, with a system that is not only efficient and functional but also adaptable and user centric. 5.2. Fulfilled requirements During the course of this project, the primary focus was to address and fulfill as many requirements as were initially established during our requirements gathering sessions. It is crucial to mention that while our ultimate goal was to meet all of these requirements, some challenges and time constraints inevitably arose that prevented us from achieving this goal in its entirety. However, significant strides were made towards satisfying the majority of the stipulated requirements, resulting in a product that we believe encapsulates the key objectives initially set out for the Dynamo Web Services platform. Here is a summary of the requirements fulfilled: • One of the essential requirements we managed to fulfill was the authentication process for users. It was crucial for us to ensure that each
76 Design, development and testing of full-stack web service for a trajectory computation algorithm user had to register and log in to gain access to the system. By doing so, we managed to establish a secure environment, one that provides a personalized and unique user experience. • Another core requirement that was effectively addressed was the ability for users to create, manage, and save their simulations. This feature was designed with the goal to allow users to save their progress and resume their work at their convenience, providing an optimal balance between flexibility and functionality. • We have implemented different permissions. For advanced users, the option to upload files directly was implemented successfully. This function bypasses the necessity of configuring simulations through form-based inputs, marking a significant accomplishment towards our aim to cater to diverse user needs and preferences. • The Dynamo Web Services platform was also designed to be fully responsive. • Is possible for users to select the simulation outputs they desire to view. • The system is designed to notify users of any errors during simulations (showing the log errors if something fails), and they can visually track the status of their simulations, fostering transparency and user control. At this point, it is important to note that the above statements provide a high-level summary of what has been achieved. The preceding sections in this document offer a more in-depth look at how these accomplishments were realized and the challenges encountered along the way. While we have managed to fulfill a considerable number of the initial requirements, there were a few that we could not accomplish within the project timeframe: • Notification of completed simulations via email. • Incorporation of a 'Help' or 'Tutorial' section within the platform • META/BATCH modes (list of flights) • Route with Google Earth • Interactive graphs • Different types of licenses • Website available in several languages Despite the unfulfilled requirements, it is essential to emphasize the current state of the Dynamo Web Services platform: a functional and an effective tool. The platform, as it stands, significantly eases user interaction with the Dynamo software, enabling trajectory simulation management with a high degree of accessibility and intuitiveness. While the initial project vision was ambitious, the unmet requirements in no way undermine the value or usability of the system. The platform is already providing substantial assistance to its users, thereby fulfilling its core mission.
Test and results 77 5.3. System bugs and issues The current implementation of the Dynamo Web Services platform, while operational and efficient, has demonstrated some minor issues during its testing phase. It is important to note that these detected bugs do not critically impact the application's performance or its overall usability. Instead, they reflect the natural process of continuous refinement that is inherent to any software development project. Below are the most significant bugs or issues identified, alongside proposed improvements for future development iterations. 1. User Registration Flow: Currently, when a user completes the registration process, they are not immediately redirected to the dashboard, but instead, they are taken to the login form. For an enhanced user experience, we propose an improvement where upon successful registration, users are directly redirected to the dashboard. This approach removes the need for users to manually navigate to the login form, streamlining their onboarding process. 2. New Simulation Page Access: There is a minor navigation issue where users, while already in the process of creating a new simulation, cannot refresh the 'New Simulation' page directly from the sidebar to start a different simulation. To mitigate this, users must navigate to another section of the platform, such as 'Simulation List', before they can access a fresh 'New Simulation' page. Future development efforts could focus on implementing a mechanism that refreshes the 'New Simulation' page whenever the corresponding sidebar button is clicked, regardless of the current page. 3. Token Expiration Handling: Lastly, there is an issue related to user token expiration. When the user's token expires, they are no longer able to access the data, and tables appear empty. However, they still remain on the dashboard. For improved user experience and system security, we suggest redirecting users to the login page or an error page informing them of the necessity to re-login when their session token expires. This would provide users with clear information about their session status and the actions they need to take. Each of these identified bugs presents opportunities for further refinement and improvement in the Dynamo Web Services platform. Addressing these issues in future development cycles will ensure a more seamless and user-friendly platform and underscores our commitment to continuous improvement and user satisfaction.
78 Design, development and testing of full-stack web service for a trajectory computation algorithm CHAPTER 6. FUTURE WORK AND CONCLUSIONS The conception of the Dynamo Web Services project was motivated by an initial challenge - the inherent complexity in the usage of the Dynamo software. As an advanced trajectory computation tool, Dynamo’s intricate operation and user interface presented a steep learning curve for users, particularly those lacking an elevated level of technical expertise. Despite its powerful capabilities, Dynamo's reach was restricted. The software needed a transformation that could enhance its accessibility and intuitiveness. This need marked the starting point of our project - to encapsulate the rich functionality of Dynamo within an intuitive webbased application. Beyond the software's complexity, a key need that prompted the creation of the web service was the demand for remote execution of Dynamo. Users needed to be able to conduct simulations without having to install the software on their own machines, nor access the source code. The project's primary objectives were clearly defined to address this challenge. The first objective was to develop a robust and secure backend server. We realized that a reliable, efficient, and secure processing environment was needed, and Python, with its simplicity and expressiveness, seemed to be an ideal choice. We combined Python with the Flask framework, known for its flexibility and minimalism, to ensure the backend server was not only powerful, but also adaptable and lightweight. Parallel to the backend development, the second objective was to create an intuitive and user-friendly frontend interface. The frontend interface served as a medium to translate the complex functionalities of Dynamo into a format that users can easily understand and interact with. For this crucial task, Vue.js and Tailwind were chosen. Vue.js offered simplicity and versatility, while Tailwind supplemented the interface design with its modern aesthetics and responsiveness, ensuring a pleasant user experience. Next, we needed to design and implement an effective database structure, considering the need to store, manage, and retrieve vast amounts of data. MongoDB, a NoSQL database known for its scalability, flexibility, and performance advantages, emerged as the suitable choice for our project's database requirements. Finally, the establishment of secure authentication and comprehensive errorhandling systems were essential. We aimed to integrate robust security measures, including user authentication and authorization, to ensure data protection. A comprehensive error-handling system was also established to assure the reliability and robustness of the system. Reflecting on these objectives and the final outcome, it's clear that the project has been successfully accomplished. The choices of Python and Flask for the backend, Vue.js and Tailwind for the frontend, and MongoDB for the database
Future work and conclusions 79 proved to be effective, leading to the creation of an operational and full-stack web application. Throughout the development process, we adhered to Agile methodologies. This iterative and user-centric approach ensured regular feedback and swift adjustments, fostering an environment of continuous delivery of usable software. This project reiterated the importance of clear communication, precise requirements gathering, and user feedback, leading to an application that is not only technically sound but also effective and user-friendly. In conclusion, the journey from the initial problem to the accomplished objectives signifies the successful transformation of Dynamo into a more accessible, webbased application. The project underscored the value of technical growth, effective development choices, and the application of appropriate methodologies. The result is Dynamo Web Services, a solution that successfully bridges the gap between complex trajectory computation and the wide-ranging user base that can now leverage this tool with ease. However, the nature of software development is an ongoing evolution towards a new set of challenges and opportunities. There are always new horizons to explore, capabilities to enhance, and bugs to resolve. It is in this context that we consider our future work. In terms of system enhancements, we have identified a number of valuable features that would further elevate the user experience. Firstly, the implementation of various user licenses, such as access for a specific number of simulations or access restricted to certain types of airplanes, would allow for greater flexibility and customization of the service. Secondly, the introduction of the META batch mode, enabling users to manage a list of flights instead of a single one, has been recognized as a crucial addition. Another significant area of development lies in the integration of interactive graphs, a feature that has already sparked interest for future research and it is being developed by other student in its research project. Addressing system bugs and improving user experience also form an integral part of the future work agenda. Streamlining the user registration process, refining the navigation system within the application, and improving the handling of token expiration are all areas requiring dedicated attention in the forthcoming phases of development. Turning our attention to unfulfilled requirements, we recognize that not all initial objectives have been fully actualized within the current phase of this project. While the system is fully operational and provides substantial utility, aspects such as comprehensive user notifications and advanced file management remain to be incorporated. These represent areas for ongoing development, contributing to the continuous evolution and enhancement of the system. Reflecting on the personal growth and learnings throughout this project, it has been a journey of significant value. It has offered a platform to apply and hone a diverse set of skills from working with modern frontend and backend technologies
80 Design, development and testing of full-stack web service for a trajectory computation algorithm to handling databases and user authentication, managing errors, and implementing security measures. Beyond the technical learnings, the project also emphasized the importance of other critical aspects of software development, such as the role of clear and precise requirements gathering, user feedback, rigorous testing, and iterative development in delivering an effective and userfriendly software solution. In conclusion, the Dynamo Web Services project serves as a testament to the immense potential of leveraging technology to simplify complex tasks and widen access to powerful tools. While this project phase has witnessed significant accomplishments, the path forward presents exciting opportunities for further growth and enhancements. As the technological landscape continues to evolve, the 'Dynamo Web Services' project will adapt and grow to better serve its users, always striving to offer a more accessible, intuitive, and user-friendly platform for trajectory computation.
BIBLIOGRAPHY [1] Dalmau, R., Melgosa, M., Vilardaga, S., Prats, X. “A Fast and Flexible Aircraft Trajectory Predictor and Optimiser for ATM Research Applications.” International Conference on Research in Air Transportation. ICRAT 2018 - 8th International Conference for Research in Air Transportation, 26-29 (2018) [2] Richardson, L., & Ruby, S., "RESTful Web Services", O'Reilly Media, Sebastopol, CA, USA (2007). [3] Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., & Berners-Lee, T., "Hypertext Transfer Protocol -- HTTP/1.1", IETF RFC 2616, The Internet Engineering Task Force (1999). [4] Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler, E., & Yergeau, F., "Extensible Markup Language (XML) 1.0", World Wide Web Consortium Recommendation REC-xml-19980210 (1998) [5] Klensin, J., "Simple Mail Transfer Protocol", IETF RFC 5321, The Internet Engineering Task Force (2008). [6] Postel, J., "Transmission Control Protocol", IETF RFC 793, The Internet Engineering Task Force (1981). [7] Shafranovich, Y., "Common Format and MIME Type for Comma- Separated Values (CSV) Files", IETF RFC 4180, The Internet Engineering Task Force (2005). [8] Crockford, D., "The application/json Media Type for JavaScript Object Notation (JSON)", IETF RFC 4627, The Internet Engineering Task Force (2006). [9] Winer, D., "RSS 2.0 Specification", RSS Advisory Board (2002). [10] Gosling, J., Joy, B., Steele, G., Bracha, G., and Buckley, A., "The Java Language Specification, Java SE 8 Edition", Addison-Wesley Professional (2014). [11] Flanagan, D., "JavaScript: The Definitive Guide: Activate Your Web Pages", O'Reilly Media (2011). [12] ISO/IEC 9075-1:2016 Information technology -- Database languages -- SQL -- Part 1: Framework (SQL/Framework), International Organization for Standardization (2016). [13] Pokorny, J., "NoSQL databases: a step to database scalability in web environment", International Journal of Web Information Systems, Vol. 9, No. 1, pp. 69-82 (2013).
82 Design, development and testing of full-stack web service for a trajectory computation algorithm [14] Zaharia, M. et al., "Spark: Cluster Computing with Working Sets", Proceedings of the 2nd USENIX Conference on Hot Topics in Cloud Computing, pp. 10-10, (2010). [15] IEEE, "IEEE Recommended Practice for Software Requirements Specifications - IEEE Std 830-1998", (1998). [16] Karl E. Wiegers, "Software Requirements", 2nd edition, Microsoft Press, (2003). [17] IEEE, "Guide to the Software Engineering Body of Knowledge (SWEBOK)", (2004). [18] Flanagan, D. "JavaScript: The Definitive Guide: Master the World's Most- Used Programming Language", O'Reilly Media, (2020). [19] Rosen, N. "Pro TypeScript: Application-Scale JavaScript Development", Apress, (2017). [20] A. Nuic, D. Poles, and V. Mouillet, “Bada: An advanced aircraft performance model for present and future atm systems,” Adaptative Control and Signal Processing, vol. 24, pp. 850–866, 2010. [21] International Civil Aviation Organization (ICAO), "Manual of the ICAO Standard Atmosphere: extended to 80 kilometres (262 500 feet)", ICAO Doc 7488-CD, Third Edition, International Civil Aviation Organization, Montreal, Canada (1993). [22] World Meteorological Organization, "The WMO Format for the Representation of Meteorological Data", Manual on Codes (WMO-No. 306), World Meteorological Organization, Geneva, Switzerland (2015). [23] "IEEE Guide for Information Technology - System Definition - Concept of Operations (ConOps) Document," in IEEE Std 1362-1998 , vol., no., pp.1-24, 22 Dec. 1998 [24] APACHE Consortium, “Report on the availability of the APACHE Framework,” Tech. Rep., June 2018, Deliverable D4.1. v01.00.00. [25] X. Prats, M. Pe rez-Batlle, C. Barrado, S. Vilardaga, I. Bas, F. Birling, R. Verhoeven, and A. Marsman, “Enhancement of a time and energy management algorithm for continuous descent operations,” in 14th Aviation Technology, Integration, and Operations (ATIO) Conference, Atlanta, GA, 2014. [26] I. Sommerville, "Software Engineering," 10th ed. Boston, MA, USA: Pearson, (2016).
[27] Larman, C., & Vodde, B. “Scaling Lean & Agile Development: Thinking and Organizational Tools for Large-Scale Scrum”. Pearson Education, (2008). [28] Schwaber, K., & Sutherland, J.”Scrum guide”. Scrum Alliance. (2017). [29] Anderson, D. J. “Kanban: Successful evolutionary change for your technology business.” Blue Hole Press. (2010). [30] Beck, K. “Extreme programming explained: embrace change.” Addisonwesley professional. (2000). [31] Poppendieck, M., & Poppendieck, T. “Lean software development: An agile toolkit.” Addison-Wesley Professional. (2003). [32] IEEE, "IEEE Guide to Software Requirements Specifications (Std 830- 1998)", IEEE, New York, NY, (1998). [33] DeMarco, T, "Structured Analysis and System Specification", Yourdon, (1978). [34] IEEE, "IEEE Recommended Practice for Software Requirements Specifications - IEEE Std 830-1998", (1998). [35] Karl E. Wiegers, "Software Requirements", 2nd edition, Microsoft Press, (2003). [36] IEEE, "Guide to the Software Engineering Body of Knowledge (SWEBOK)", (2004). USEFUL LINKS [‡1] World Wide Web Consortium (W3C), "Web Services Architecture", W3C, Cambridge, MA, USA (2004). [online] Available in: https://www.w3.org/TR/wsarch/ [10-10-2022] [‡2] World Wide Web Consortium (W3C), "SOAP Version 1.2 Part 1: Messaging Framework (Second Edition)", W3C, Cambridge, MA, USA (2007). [online] Available in: https://www.w3.org/TR/soap12-part1/ [10-10-2022] [‡3] W3schools Tutorials, “REST Methods”. [online] Available in: https://www.w3schools.in/restful-web-services/rest-methods [10-10-2022] [‡4] SOAP vs REST: Difference Between Web Services [online] Available in: https://www.guru99.com/comparison-between-web-services.html[10-10- 2022]
90 Design, development and testing of full-stack web service for a trajectory computation algorithm NON-FUNCTIONAL REQUIREMENTS 1. Security: The system should implement secure authentication protocols, encrypt sensitive data, and enforce strict access control measures. 2. Usability: The software should be user-friendly and easy to navigate, even for users without previous experience with Dynamo or trajectory computation software. 3. Performance: The system should quickly respond to user requests, execute simulations efficiently, and present data without noticeable delays. 4. Scalability: The software should be designed to handle a growing number of users and simulations without degrading performance. 5. Responsiveness: The user interface should be responsive, meaning it should provide a seamless experience across different screen sizes and devices. USE CASES • An "End User" interacts with the system by registering an account, logging in, creating and configuring a simulation, executing the simulation, monitoring its status, and viewing the results. The user interface guides the user through each step, facilitating a smooth and intuitive interaction with the system. • An "Advanced User" enjoys the privileges of an End User and also has the ability to upload pre-configured XML files for running simulations. • An "Admin User" has the authority to manage user accounts, control system-wide settings, and has full access to all simulations and their corresponding data.