diff --git a/docs/brainstorm/SoftwareDocumentatie/graph_classes.md b/docs/brainstorm/SoftwareDocumentatie/classes.md similarity index 57% rename from docs/brainstorm/SoftwareDocumentatie/graph_classes.md rename to docs/brainstorm/SoftwareDocumentatie/classes.md index fc9f604..0acf0e1 100644 --- a/docs/brainstorm/SoftwareDocumentatie/graph_classes.md +++ b/docs/brainstorm/SoftwareDocumentatie/classes.md @@ -1,3 +1,55 @@ +# Nodes + +## Introduction + +The nodes are the devices that are placed in the rooms. The nodes are used to collect the data from the sensors. Every node is connected to the websocket, and sends their data with their mac address in json format. The websocket broadcasts the node data back to all clients, and since our website functions as a client it also receives the data. Every node will, depending on what node, be made into a class. + +## Requirements + +### Sensornode + +- Every node has to have a unique nodeID +- Every node has to have their corresponding sensorsvalues in form of arrays + +### Feedbacknodes + +- Every node has to have a unique nodeID +- Every node has to have their corresponding feedback in form of a 2D array + +## Class diagrams + +### Node + +```mermaid +classDiagram + class Node { + +nodeID + +processNodeData() + +updateNodeData() + } +``` + +#### Sensornode + +```mermaid +classDiagram + class SensorNode extends Node { + +tempArray + +humiArray + +eco2Array + +tvocArray + } +``` + +#### Feedbacknode + +```mermaid +classDiagram + class FeedbackNode extends Node { + +feedbackArray + } +``` + # Graphs ## Introduction @@ -29,7 +81,6 @@ classDiagram ```mermaid classDiagram class liveGraph extends graph { - +nodeId +cnt +timeArray +tempArray