# eladrimonos/2-dam-psp architecture

> Architecture diagram of the GitHub repository eladrimonos/2-dam-psp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eladrimonos/2-dam-psp
- Repository: https://github.com/eladrimonos/2-dam-psp

## Overview

##### Project Type Analysis
This is an educational project structured into multiple units covering different aspects of Java programming, specifically focusing on processes, threads, and network communications.

##### Main Components

- Introduction Module (Basic Java Concepts)
- Unit 1: Process Creation
- Unit 2: Thread Programming
- Unit 3: Network Communications

Introduction:
- Arrays & Collections
- Exception Handling

Unit 1 (Processes):
- Process Management
- File Operations
- Command Execution
- Process Communication

Unit 2 (Threads):
- Basic Thread Creation
- Synchronization
- Producer-Consumer Pattern
- Thread Pools
- Race Conditions

Unit 3 (Network):
- URL/Inet Handling
- Web Scraping
- Network Communications
- Client-Server Architecture

##### Specific Design Elements

a) Relationships:
- Progression from basic concepts to advanced topics
- Dependencies between components
- Practical implementations (like the examples in each unit)

b) Special notations for:
- Core concepts (use bold borders)

##### Technical Details

- Java Runtime Environment interaction
- Process creation and management flows
- Thread lifecycle and synchronization patterns
- Network protocol implementations
- File system interactions

Remember to:
- Keep the abstraction level appropriate for a principal software engineer
- Clear annotations for complex interactions
- Provide a clear visual hierarchy of components
- Both theoretical concepts and their practical implementations

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Main Sections
    subgraph Introduction
        Arrays["Arrays & Collections"]
        Exceptions["Exception Handling"]
    end

    subgraph "Unit 1: Process Programming"
        ProcessMgmt["Process Management"]
        FileOps["File Operations"]
        CmdExec["Command Execution"]
        ProcComm["Process Communication"]
    end

    subgraph "Unit 2: Thread Programming"
        ThreadBasics["Basic Thread Creation"]
        ThreadSync["Thread Synchronization"]
        ProdCons["Producer-Consumer Pattern"]
        ThreadPools["Thread Pools"]
        RaceCond["Race Conditions"]
    end

    subgraph "Unit 3: Network Programming"
        URLInet["URL/Inet Handling"]
        WebScrape["Web Scraping"]
        NetComm["Network Communications"]
        ClientServer["Client-Server Architecture"]
    end

    %% Relationships
    Arrays --> ProcessMgmt
    Arrays --> ThreadBasics
    Exceptions --> ProcessMgmt
    Exceptions --> ThreadBasics
    Exceptions --> URLInet

    ProcessMgmt --> ThreadBasics
    ProcessMgmt --> ProcComm
    FileOps --> ProcComm
    CmdExec --> ProcComm

    ThreadBasics --> ThreadSync
    ThreadSync --> ProdCons
    ThreadSync --> ThreadPools
    ThreadSync --> RaceCond

    URLInet --> WebScrape
    URLInet --> NetComm
    NetComm --> ClientServer

    %% Click Events
    click Arrays "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/Introduccion/ArraysBidimensionales/"
    click Exceptions "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/Introduccion/Exepciones/"
    click ProcessMgmt "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T1/ProcessKillNotepad/"
    click CmdExec "https://github.com/ELadrimonos/2-DAM-PSP/blob/master/T1/Examen/src/ManualComandos.java"
    click FileOps "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T1/RepasoExamen/"
    click ThreadBasics "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T2/Hilos/"
    click ThreadSync "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T2/Sincronizar/"
    click ProdCons "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T2/ConsumidorProductor/"
    click ThreadPools "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T2/Carrera/"
    click URLInet "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T3/IntroduccionInet/"
    click WebScrape "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T3/ScrapeH2Tags/"
    click NetComm "https://github.com/ELadrimonos/2-DAM-PSP/tree/master/T3/Superheroes/"

    %% Styling
    classDef intro fill:#a8d1f0,stroke:#0d47a1
    classDef process fill:#b9f6ca,stroke:#1b5e20
    classDef thread fill:#ffcc80,stroke:#e65100
    classDef network fill:#e1bee7,stroke:#4a148c
    
    class Arrays,Exceptions intro
    class ProcessMgmt,FileOps,CmdExec,ProcComm process
    class ThreadBasics,ThreadSync,ProdCons,ThreadPools,RaceCond thread
    class URLInet,WebScrape,NetComm,ClientServer network
```
