# cs5004-5010-2026/class-01 architecture

> Architecture diagram of the GitHub repository cs5004-5010-2026/class-01, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cs5004-5010-2026/class-01
- Repository: https://github.com/cs5004-5010-2026/class-01

## Overview

This repository is an educational digital-clock project with Python and Java implementations. The principal workflow takes hour, minute, and second inputs, validates them, stores a canonical seconds-since-midnight value, and derives decimal, binary, hexadecimal, and raw-seconds displays. The Python implementation contains working logic and a demo; the Java class documents the same behavior but its constructor and display methods are currently TODO stubs. The graph distinguishes the implementations and avoids implying the Java workflow is complete.

Main entry points: [`DigitalClock.py`](https://github.com/cs5004-5010-2026/class-01/blob/main/DigitalClock.py) (Python demo), [`src/main/java/clock/DigitalClock.java`](https://github.com/cs5004-5010-2026/class-01/blob/main/src/main/java/clock/DigitalClock.java) (Java clock)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_python["Python implementation"]
  node_python_demo["Python demo<br/>[DigitalClock.py]"]
  node_python_clock["Python clock<br/>[DigitalClock.py]"]
end

subgraph group_java["Java implementation"]
  node_java_clock["Java clock<br/>[DigitalClock.java]"]
end

node_user(("User"))

node_user -->|"runs demo"| node_python_demo
node_python_demo -->|"creates clocks"| node_python_clock
node_user -->|"runs main"| node_java_clock

click node_python_demo "https://github.com/cs5004-5010-2026/class-01/blob/main/DigitalClock.py"
click node_python_clock "https://github.com/cs5004-5010-2026/class-01/blob/main/DigitalClock.py"
click node_java_clock "https://github.com/cs5004-5010-2026/class-01/blob/main/src/main/java/clock/DigitalClock.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_python_demo,node_python_clock,node_user toneBlue
class node_java_clock toneAmber
```

## Components

### Python implementation

- [Python demo](https://github.com/cs5004-5010-2026/class-01/blob/main/DigitalClock.py): `DigitalClock.py`
- [Python clock](https://github.com/cs5004-5010-2026/class-01/blob/main/DigitalClock.py): `DigitalClock.py`

### Java implementation

- [Java clock](https://github.com/cs5004-5010-2026/class-01/blob/main/src/main/java/clock/DigitalClock.java): `src/main/java/clock/DigitalClock.java`

### Other components

- **User**

## Connections

- User → Python demo: runs demo (evidence: `DigitalClock.py`)
- Python demo → Python clock: creates clocks (evidence: `DigitalClock.py`)
- User → Java clock: runs main (evidence: `src/main/java/clock/DigitalClock.java`)
