We have provided a few interaction diagrams show casing what goes on for a few selected use cases to help develop a general fell of how our system works.
For sequence diagrams we have shown the normal flow for each use case.
Images of the sequence diagram can be found in ./images
, pdf versions can be found in ./pdf
The software used to draw the sequence diagram did not render lifeline bars.
For readability as this tries to convey what is going on, we have left out object instantiation and simplify parts of the code in the digram.
Followed IBM's UML Sequence Diagram Guidelines.
Solid arrowhead (if a synchronous call operation) or with a stick arrowhead (if an asynchronous signal).
An admin starts the backend server running npm run backend-start
.
We show this as a use case as it gives a good high level over view of the entire system including the loop to get weather data every weatherPollingInterval
seconds.
Get weather data for all monitored locations at weatherPollingInterval
intervals.
User clicks on the rain button to add a monitor for a location.
Frontend - Button gets clicked, sends message to backend.
Backend - received message, gets data from weather client and returns it to frontend.
Frontend - received new data, re-renders.