# otniel113/tugasbesarstd architecture

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

- Interactive diagram: https://gitdiagram.com/otniel113/tugasbesarstd
- Repository: https://github.com/otniel113/tugasbesarstd

## Overview

##### Project type and purpose
- This is a console-based C++ application (built with Code::Blocks) for a Data Structures assignment.
- It demonstrates a Multi Linked-List structure where one list holds Instructors, another holds Courses, and a cross-link (relasi) list ties them together.

##### File structure
- Top level:
- README.md – project description
- TubesInstructorCourse/ – Code::Blocks project folder
- Inside TubesInstructorCourse/:
- .cbp, .layout, .depend – IDE project files
- src files: inst_course.h, inst_course.cpp, main.cpp
- bin/Debug/TubesInstructorCourse.exe – compiled executable
- obj/Debug/*.o – object files
- No external services, database, or web components—pure in-memory structure.

##### README for additional insights
- Confirms the Multi Linked-List design with two “master” lists and a relation list.
- Describes three main modules:
1. inst_course.h – data structures & API definitions
2. inst_course.cpp – implementation of list and relation operations
3. main.cpp – console UI and menu driver

##### Detail but keep clarity
- Every distinct component and pointer direction
- Related functions and data types together
- Build artifacts (bin/, obj/) only if illustrating the build/deploy flow

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Project Metadata
    subgraph "Project Metadata"
        rd["README.md"]:::doc
        cbp["TubesInstructorCourse.cbp"]:::doc
        layout["TubesInstructorCourse.layout"]:::doc
        depend["TubesInstructorCourse.depend"]:::doc
    end

    %% Presentation Layer
    subgraph "Presentation Layer"
        UI["Console UI\n(main.cpp)"]:::frontend
    end

    %% Business Logic / Data Model Definitions
    subgraph "Business Logic"
        API["API Definitions\ninst_course.h"]:::backend
        IMP["Implementation\ninst_course.cpp"]:::backend
    end

    %% In-Memory Data Structures
    subgraph "Data Model"
        instr["InstructorNode"]:::node
        course["CourseNode"]:::node
        rel["RelationNode"]:::node
    end

    %% Build Artifacts
    subgraph "Build Artifacts"
        obj_main["main.o"]:::artifact
        obj_lib["inst_course.o"]:::artifact
        exe["TubesInstructorCourse.exe"]:::artifact
    end

    %% Relationships
    UI -->|"calls API"| API
    UI -->|"calls Impl"| IMP
    API -->|"defines operations for"| instr
    API -->|"defines operations for"| course
    API -->|"defines operations for"| rel
    IMP -->|"implements operations on"| instr
    IMP -->|"implements operations on"| course
    IMP -->|"implements operations on"| rel

    instr -->|"next/prev pointers"| instr
    course -->|"next/prev pointers"| course
    instr -->|"relation pointers"| rel
    course -->|"relation pointers"| rel
    rel -->|"links to"| instr
    rel -->|"links to"| course

    UI -->|"compiles to"| obj_main
    API -->|"compiles to"| obj_lib
    IMP -->|"compiles to"| obj_lib
    obj_main --> exe
    obj_lib --> exe

    %% Click Events
    click rd "https://github.com/otniel113/tugasbesarstd/blob/main/README.md"
    click cbp "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/TubesInstructorCourse.cbp"
    click layout "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/TubesInstructorCourse.layout"
    click depend "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/TubesInstructorCourse.depend"
    click UI "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/main.cpp"
    click API "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/inst_course.h"
    click IMP "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/inst_course.cpp"
    click exe "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/bin/Debug/TubesInstructorCourse.exe"
    click obj_main "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/obj/Debug/main.o"
    click obj_lib "https://github.com/otniel113/tugasbesarstd/blob/main/TubesInstructorCourse/obj/Debug/inst_course.o"

    %% Styles
    classDef frontend fill:#f9f,stroke:#333,stroke-width:1px
    classDef backend fill:#bbf,stroke:#333,stroke-width:1px
    classDef node fill:#cff,stroke:#333,stroke-width:1px,stroke-dasharray: 2 2
    classDef doc fill:#ffc,stroke:#333,stroke-width:1px
    classDef artifact fill:#fcf,stroke:#333,stroke-width:1px,stroke-dasharray: 4 2
```
