# siro098/ooptg13 architecture

> Architecture diagram of the GitHub repository siro098/ooptg13, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/siro098/ooptg13
- Repository: https://github.com/siro098/ooptg13

## Overview

##### Project type and purpose
- This is a “school repo” containing a set of standalone Java exercises and mini-projects.
- Each top-level folder (A1ThreadsVererbung, B1Listen, C1KünstlicheIntiligenz, etc.) is a self-contained demo or homework assignment illustrating a specific Java topic (threads, collections, AI algorithms, chat server, lambdas, etc.).

##### File structure
- Top-level directories are grouped by theme:
- A-folders cover multithreading
- B-folders cover data structures (lists, trees)
- C-folders cover AI exercises (K-means, KNN)
- D-folders cover functional Java and a chat application
- Additional folders show stacks, sets, maps
- Each folder contains:
- .java source files (the implementation)
- .md files with exercise descriptions or notes
- There is no single build script or shared library; each module compiles and runs on its own.

##### README
- The README simply identifies the repository as “SchulRepo der Oberstufe HGS Singen.”
- No further architectural guidance is provided.

##### Final recommendations
- Keep each module’s internal classes grouped inside a container.
- Container with its educational goal (e.g., “Thread creation and interruption”).

## Diagram (Mermaid)

```mermaid
graph TB
    %% Global JDK node
    JDK["Java SE Runtime (JDK)"]:::jdk

    %% Threads Modules
    subgraph "Threads Modules" 
        direction TB
        A1["A1ThreadsVererbung\n(MyThread, erzeugeThreads)"]:::threads
        A2["A2ThreadsInterface\n(MyThread, erzeugeThread)"]:::threads
        A3["A3AmpelmitThreads\n(Ampel, starteAmpel)"]:::threads
        A4["A4ThreadsStoppen\n(Counter, MainCounter)"]:::threads
    end

    %% Collection Modules
    subgraph "Collection Modules"
        direction TB
        B1["B1Listen\n(ArrayList, LinkedList)"]:::collections
        B2["B2Bäume\n(Node, Tree)"]:::collections
    end

    %% AI Modules
    subgraph "AI Modules"
        direction TB
        subgraph "K-means Pipeline" 
            direction TB
            C1Data["DataObject"]:::ai
            Cluster["Cluster"]:::ai
            Kmeans["Kmeans"]:::ai
            C1Main["Main"]:::ai
        end
        subgraph "KNN Exercise"
            direction TB
            KNNData["DataObject"]:::ai
            KNNMain["Main"]:::ai
        end
        C1Data -->|feeds| Cluster -->|uses| Kmeans -->|invoked by| C1Main
        KNNData -->|used by| KNNMain
    end

    %% Chat Module
    subgraph "Chat Module"
        direction TB
        ChatClient["ChatClient"]:::chat
        ChatServer["ChatServer"]:::chat
        ClientHandler["ClientHandler"]:::chat
        ChatClient ---|socket| ChatServer
        ChatServer -->|spawns| ClientHandler
    end

    %% Functional & Lambda Module
    subgraph "Functional & Lambda Module"
        direction TB
        FI["FunctionalInterfaces"]:::func
        LMB["Lambda"]:::func
        Kreis["Kreis"]:::func
    end

    %% Utility Modules
    subgraph "Utility Modules"
        direction TB
        Fifo["FifoundStacks"]:::util
        SetInt["Set-Interface"]:::util
        MapInt["maps-interface"]:::util
    end

    %% Dependencies
    JDK --> A1
    JDK --> A2
    JDK --> A3
    JDK --> A4
    JDK --> B1
    JDK --> B2
    JDK --> C1Data
    JDK --> KNNData
    JDK --> ChatClient
    JDK --> ChatServer
    JDK --> FI
    JDK --> Fifo
    JDK --> SetInt
    JDK --> MapInt

    %% Click Events for Threads Modules
    click A1 "https://github.com/siro098/ooptg13/blob/main/A1ThreadsVererbung/MyThread.java"
    click A1 "https://github.com/siro098/ooptg13/blob/main/A1ThreadsVererbung/erzeugeThreads.java"
    click A2 "https://github.com/siro098/ooptg13/blob/main/A2ThreadsInterface/MyThread.java"
    click A2 "https://github.com/siro098/ooptg13/blob/main/A2ThreadsInterface/erzeugeThread.java"
    click A3 "https://github.com/siro098/ooptg13/blob/main/A3AmpelmitThreads/Ampel.java"
    click A3 "https://github.com/siro098/ooptg13/blob/main/A3AmpelmitThreads/starteAmpel.java"
    click A4 "https://github.com/siro098/ooptg13/blob/main/A4ThreadsStoppen/Counter.java"
    click A4 "https://github.com/siro098/ooptg13/blob/main/A4ThreadsStoppen/MainCounter.java"

    %% Click Events for Collection Modules
    click B1 "https://github.com/siro098/ooptg13/blob/main/B1Listen/Arraylistnamen.java"
    click B1 "https://github.com/siro098/ooptg13/blob/main/B1Listen/Arraynamen.java"
    click B1 "https://github.com/siro098/ooptg13/blob/main/B1Listen/LinkedListnamen.java"
    click B2 "https://github.com/siro098/ooptg13/blob/main/B2Bäume/Node.java"
    click B2 "https://github.com/siro098/ooptg13/blob/main/B2Bäume/Tree.java"
    click B2 "https://github.com/siro098/ooptg13/blob/main/B2Bäume/Main.java"

    %% Click Events for AI Modules
    click C1Data "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/DataObject.java"
    click Cluster "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/Kmeans/Cluster.java"
    click C1Data "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/Kmeans/DataObject.java"
    click Kmeans "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/Kmeans/Kmeans.java"
    click C1Main "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/Main.java"
    click KNNData "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/Übung/KNN/DataObject.java"
    click KNNMain "https://github.com/siro098/ooptg13/blob/main/C1KünstlicheIntiligenz/Übung/KNN/Main.java"

    %% Click Events for Chat Module
    click ChatClient "https://github.com/siro098/ooptg13/blob/main/D1JavaChat/ChatClient/ChatClient.java"
    click ChatServer "https://github.com/siro098/ooptg13/blob/main/D1JavaChat/Server/ChatServer.java"
    click ClientHandler "https://github.com/siro098/ooptg13/blob/main/D1JavaChat/Server/ClientHandler.java"

    %% Click Events for Functional Module
    click FI "https://github.com/siro098/ooptg13/blob/main/D4Lambda/FunctionalInterfaces.java"
    click LMB "https://github.com/siro098/ooptg13/blob/main/D4Lambda/Lambda.java"
    click Kreis "https://github.com/siro098/ooptg13/blob/main/D4Lambda/Kreis.java"

    %% Click Events for Utility Modules
    click Fifo "https://github.com/siro098/ooptg13/blob/main/FifoundStacks/Element.java"
    click Fifo "https://github.com/siro098/ooptg13/blob/main/FifoundStacks/Fifo.java"
    click Fifo "https://github.com/siro098/ooptg13/blob/main/FifoundStacks/Main.java"
    click SetInt "https://github.com/siro098/ooptg13/blob/main/Set-Interface/Set Interface.md"
    click MapInt "https://github.com/siro098/ooptg13/blob/main/maps-interface/maps.md"

    %% Styles
    classDef jdk fill:#ffe4b5,stroke:#000
    classDef threads fill:#add8e6,stroke:#000
    classDef collections fill:#90ee90,stroke:#000
    classDef ai fill:#ffcc99,stroke:#000
    classDef chat fill:#dda0dd,stroke:#000
    classDef func fill:#ffb6c1,stroke:#000
    classDef util fill:#d3d3d3,stroke:#000
```
