Skip to content

Commit

Permalink
Merge pull request #21 from Capstone-Projects-2024-Spring/Feb18UseCas…
Browse files Browse the repository at this point in the history
…eSeqDiagrams

Created and added Use Case Sequence Diagrams
  • Loading branch information
tul58767 authored Feb 19, 2024
2 parents f6808ce + 1fd754d commit a42fb46
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 24 deletions.
42 changes: 21 additions & 21 deletions documentation/docs/requirements/use-case-descriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<h3>Use Case 1 - Number of Related Deaths</h3>

A health research wants to study affects of covid cases.
A healthcare researcher wants to study affects of covid cases.
<ol>
<li>User loads the PhillyGPT website.</li>
<li>User enters a prompt to ask the number of covid deaths.</li>
Expand All @@ -23,27 +23,27 @@ A user wants to find view a heat map of violent crime within North Philadelphia
<li>The website displays a heat map showing the number of violent crimes committed in North Philadelphia in 2022</li>
</ol>

<h3>Use Case 3 - Map of Crime</h3>
<s><h3>Use Case 3 - Map of Crime</h3></s>

Journalist writing paper on muggings in Philadelphia wants to know areas of high mugging concentration
<ol>
<li>Journalist goes to PhillyGPT website</li>
<li>Journalist enters a prompt asking “Show me a map revealing information on muggings in Philadelphia”</li>
<li>The journalist is shown a map and zooms in on Fishtown. </li>
<li>The journalist wants to be sure the data provided is accurate so they click on a link that brings them to the database that was used to create the map</li>
<li>After checking directly from the source, the Journalist is confident in the findings. </li>
</ol>
<s>Journalist writing paper on muggings in Philadelphia wants to know areas of high mugging concentration</s>
<s><ol></s>
<s><li>Journalist goes to PhillyGPT website</li></s>
<s><li>Journalist enters a prompt asking “Show me a map revealing information on muggings in Philadelphia”</li></s>
<s><li>The journalist is shown a map and zooms in on Fishtown. </li></s>
<s><li>The journalist wants to be sure the data provided is accurate so they click on a link that brings them to the database that was used to create the map</li></s>
<s><li>After checking directly from the source, the Journalist is confident in the findings. </li></s>
<s></ol></s>

<h3>Use Case 4 - Transportation Information</h3>
<s><h3>Use Case 4 - Transportation Information</h3></s>

A student is researching public transportation in Philadelphia for a class project
<ol>
<li>Student visits the PhillyGPT website</li>
<li>Student enters a prompt asking for information on public transportation routes and schedules in Philadelphia</li>
<li>The website provides the student with a detailed list of public transportation options, including bus routes, subway lines, and schedules.</li>
</ol>
<s>A student is researching public transportation in Philadelphia for a class project</s>
<s><ol></s>
<s><li>Student visits the PhillyGPT website</li></s>
<s><li>Student enters a prompt asking for information on public transportation routes and schedules in Philadelphia</li></s>
<s><li>The website provides the student with a detailed list of public transportation options, including bus routes, subway lines, and schedules.</li></s>
<s></ol></s>

<h3>Use Case 5 - Foot Traffic Identification</h3>
<h3>Use Case 3 - Foot Traffic Identification</h3>

A small business owner is considering opening a new restaurant in Philadelphia and want to identify the neighborhoods with the highest foot traffic
<ol>
Expand All @@ -52,7 +52,7 @@ A small business owner is considering opening a new restaurant in Philadelphia a
<li>Using this information, the business owner can make informed decisions about the location of his/her restaurant.</li>
</ol>

<h3>Use Case 6 - Location Analysis</h3>
<h3>Use Case 4 - Location Analysis</h3>

An urban planner wants to create a new green space in the city
<ol>
Expand All @@ -61,7 +61,7 @@ An urban planner wants to create a new green space in the city
<li>A table is shown that has relevant details about every green space such as their area and amenities.</li>
</ol>

<h3>Use Case 7 - Real Estate Analysis</h3>
<h3>Use Case 5 - Real Estate Analysis</h3>

A real estate investor is looking for abandoned houses to buy and flip
<ol>
Expand All @@ -72,7 +72,7 @@ A real estate investor is looking for abandoned houses to buy and flip
<li>A response is returned with information such as the cost, square footage, and time its been vacant.</li>
</ol>

<h3>Use Case 8 - Leisure Activities</h3>
<h3>Use Case 6 - Leisure Activities</h3>

Tourists are visiting Philadelphia and want to know about landmarks.
<ol>
Expand Down
32 changes: 29 additions & 3 deletions documentation/docs/system-architecture/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,35 @@ Current System Architecure Diagram (work in progress)
- **SQL Database**
- PhillyGPT's SQL database will consist of a database schema and tables. This will allow SQL commands for querying and manipulating data. This database will be accessed by the backend server or AWS Lambda functions to retrieve data based on SQL queries.
- **Carto's SQL API Integration**
- For geographical purposes PhillyGPT will utilize code that makes HTTP requests to Carto's SQL API for executing SQL queries on spatial data. API requests to Carto's SQL API endpoint will be made by passing SQL queries and receiving query results in JSON format.
- For geographical purposes PhillyGPT will utilize code that makes HTTP requests to Carto's SQL API for executing SQL queries on spatial data. API requests to Carto's SQL API endpoint will be made by passing SQL queries and receiving query results in JSON format.

**Sequence Diagrams for Use Cases**

Use Case 1
![Use Case 1](https://github.com/Capstone-Projects-2024-Spring/project-phillygpt/assets/76089708/1f036572-2cac-41c6-8e6e-551eac399c57)

Use Case 2
![Use Case 2](https://github.com/Capstone-Projects-2024-Spring/project-phillygpt/assets/76089708/b651f786-a01d-415f-b20c-c369d73c1d66)

Use Case 3
![Use Case 3](https://github.com/Capstone-Projects-2024-Spring/project-phillygpt/assets/76089708/0ae8c8b5-a8ac-4839-910a-6e207bb9f322)

Use Case 4
![Use Case 4](https://github.com/Capstone-Projects-2024-Spring/project-phillygpt/assets/76089708/d89d5cc1-c258-4351-ba71-51ea19670103)

Use Case 5
![Use Case 5](https://github.com/Capstone-Projects-2024-Spring/project-phillygpt/assets/76089708/d8217765-235b-488c-80a8-436c4e8653ac)

Use Case 6
![Use Case 6](https://github.com/Capstone-Projects-2024-Spring/project-phillygpt/assets/76089708/d028ff85-ba88-41f9-bdd0-24372f073add)









**Requirements**

Expand All @@ -32,8 +60,6 @@ A description the different components and their interfaces. For example: client

For each component provide class diagrams showing the classes to be developed (or used) and their relationship.

Sequence diagrams showing the data flow for _all_ use cases. One sequence diagram corresponds to one use case and different use cases should have different corresponding sequence diagrams.

Describe algorithms employed in your project, e.g. neural network paradigm, training and training data set, etc.

If there is a database:
Expand Down

0 comments on commit a42fb46

Please sign in to comment.