# rasikpandit321/cscn72020-sec3-group17 architecture

> Architecture diagram of the GitHub repository rasikpandit321/cscn72020-sec3-group17, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-11-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rasikpandit321/cscn72020-sec3-group17
- Repository: https://github.com/rasikpandit321/cscn72020-sec3-group17

## Overview

##### Project type and purpose
- This is a back-end console/service application written in C# (.NET), focused on “Warehouse Management.”
- It appears to implement real-time monitoring features (e.g., alarms) and safety mechanisms (emergency stop).
- There is no front-end UI directory; instead the core logic lives in Program.cs, AlarmsService.cs, and EStop.cs. Unit tests are in a separate MSTest project.

##### File structure
- Top-level:
- WareHouse_Management/ – main .NET project
– Program.cs: entry point
– AlarmsService.cs: alarm monitoring logic
– EStop.cs: emergency-stop handling
– WareHouse_Management.csproj & solution file
- Warehouse_Management_Test/ – MSTest unit tests for alarms and EStop
- No “data” or “infrastructure” folders are present; if there is a database or message broker layer, it is implicitly accessed from within the services.

##### Readme insights
- Minimal description (“Project 3 group project”).

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "WareHouse Management Service"
        direction TB
        Program["Program"]:::core
        AlarmsService["AlarmsService"]:::core
        EStop["EStop"]:::core
        Csproj["WareHouse_Management.csproj"]:::core
        Sln["WareHouse_Management.sln"]:::core
    end

    subgraph "Infrastructure"
        direction TB
        DataStorage["Database / File Logger"]:::infra
        HardwareInterface["PLC / Sensor Hardware"]:::infra
        MessageBus["Message Bus"]:::infra
    end

    subgraph "Test Harness"
        direction TB
        TestProj["Warehouse_Management_Test.csproj"]:::test
        AlarmTests["AlarmTests.cs"]:::test
        MSTestSettings["MSTestSettings.cs"]:::test
    end

    %% Core flow
    Program -->|"instantiates"| AlarmsService
    Program -->|"instantiates"| EStop
    AlarmsService -->|"SaveAlarm() / ReadAlarm()"| DataStorage
    EStop -->|"ActivateEStop() / Signal()"| HardwareInterface
    AlarmsService -->|"PublishAlarmEvent()"| MessageBus
    EStop -->|"PublishEStopEvent()"| MessageBus

    %% Tests
    TestProj -->|"contains tests"| AlarmTests
    AlarmTests -->|"tests"| AlarmsService
    TestProj -->|"uses config"| MSTestSettings

    %% Click Events
    click Program "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/WareHouse_Management/Program.cs"
    click AlarmsService "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/WareHouse_Management/AlarmsService.cs"
    click EStop "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/WareHouse_Management/EStop.cs"
    click Csproj "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/WareHouse_Management/WareHouse_Management.csproj"
    click Sln "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/WareHouse_Management/WareHouse_Management.sln"
    click TestProj "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/Warehouse_Management_Test/Warehouse_Management_Test.csproj"
    click AlarmTests "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/Warehouse_Management_Test/AlarmTests.cs"
    click MSTestSettings "https://github.com/rasikpandit321/cscn72020-sec3-group17/blob/main/Warehouse_Management_Test/MSTestSettings.cs"

    classDef core fill:#D0E8FF,stroke:#0366d6,stroke-width:1px
    classDef infra fill:#E8FFD0,stroke:#22863a,stroke-width:1px
    classDef external fill:#FFE4D0,stroke:#d73a49,stroke-width:1px
    classDef test fill:#FFF5D0,stroke:#dbab09,stroke-width:1px
```
