How siddhant0812-sid/schedulai-ai-assisted-cpu-scheduling-simulator-optimizer works
SchedulAI lets learners configure CPU workloads, simulate scheduling algorithms, compare metrics and timelines, inspect process lifecycles, and request an objective-based recommendation or CSV export. The React dashboard calls a FastAPI API; its routes coordinate presets, recommendation and export logic, and a Python subprocess bridge to the C++ scheduling engine. The README documents six algorithms and the visualization and classroom-preset capabilities. Some UI and API wiring is supported only by the README or source index, so those links are marked dashed where unverified in excerpts.
Main entry points: App.tsx Dashboard · api.py FastAPI Routes · scheduling.py Request and Result Schemas · GanttChart.tsx Gantt Timeline
Components 17
Dashboard
- Dashboard
frontend/src/App.tsx - Workload Workspace
frontend/src/components/WorkspaceSection.tsx - Algorithm Comparison
frontend/src/components/ComparisonSection.tsx - Gantt Timeline
frontend/src/components/GanttChart.tsx - Process Explorer
frontend/src/components/ProcessExplorerSection.tsx - AI Insights
frontend/src/components/AiInsightsSection.tsx - API Client
frontend/src/services/api.ts
API Services
- FastAPI Routes
backend/app/routes/api.py - API Application
backend/app/main.py - Workload Presets
backend/app/services/presets.py - Recommendation Optimizer
backend/app/recommendations/optimizer.py - CSV Export
backend/app/services/csv_export.py - Engine Bridge
backend/app/services/engine.py
Scheduling Engine
- Scheduling Engine
backend/cpp/existing_scheduler.cpp
Data Contracts
- UI Types
frontend/src/types/scheduling.ts - Request and Result Schemas
backend/app/schemas/scheduling.py
Other components
- Learner
Connections 21
- Learner → Dashboard: uses
README.md - Dashboard → Workload Workspace: renders
frontend/src/App.tsx - Dashboard → Algorithm Comparison: renders
frontend/src/App.tsx - Dashboard → Process Explorer: renders
frontend/src/App.tsx - Dashboard → AI Insights: renders
frontend/src/App.tsx - Dashboard → API Client: calls
frontend/src/App.tsx - Dashboard → UI Types: uses
frontend/src/App.tsx - Algorithm Comparison → Gantt Timeline: renders
frontend/src/components/ComparisonSection.tsx - Process Explorer → Gantt Timeline: renders
frontend/src/components/ProcessExplorerSection.tsx - AI Insights → Gantt Timeline: renders
frontend/src/components/AiInsightsSection.tsx - API Client → FastAPI Routes: sends requests
- FastAPI Routes → Request and Result Schemas: validates and returns
backend/app/routes/api.py - API Application → FastAPI Routes: registers
backend/app/main.py - FastAPI Routes → Workload Presets: fetches
backend/app/routes/api.py - FastAPI Routes → Engine Bridge: runs simulations
backend/app/routes/api.py - FastAPI Routes → Recommendation Optimizer: builds recommendation
backend/app/routes/api.py - FastAPI Routes → CSV Export: generates CSV
backend/app/routes/api.py - Engine Bridge → Scheduling Engine: invokes
backend/app/services/engine.py - Recommendation Optimizer → Request and Result Schemas: uses models
backend/app/recommendations/optimizer.py - Workload Presets → Request and Result Schemas: constructs workloads
backend/app/services/presets.py - CSV Export → Request and Result Schemas: reads results
backend/app/services/csv_export.py