Skip to content

Software Architecture and C4 Model

Calculate RPW uses a layered, platform-agnostic architecture separating pure Dart RPW domain logic from data adapters and adaptive Material 3 UI components.

C4 Level 1: System Context

Shows how an industrial engineer uses Calculate RPW alongside local device preferences and the host clipboard.

C4 Level 1 System Context

C4 Level 2: Containers

Shows the runtime containers across Android, Windows desktop, Flutter Web, local preferences storage, and the documentation portal.

C4 Level 2 Containers

C4 Level 3: Components

Shows internal components inside the Flutter client application: AdaptiveShell, AppRouter, CalculatorViewModel, RpwInputValidator, HelgesonBirnieRpwSolver, RpwOutputComposer, SampleProblemFactory, ThemeRepository, and platform service wrappers.

C4 Level 3 Components

C4 Level 4: Code

Shows the pure Dart domain types and design patterns (Strategy, Composite, Factory, and Sealed algebraic outcomes).

C4 Level 4 Code