How anshhhgupta/raae----resource-aware-adaptive-app-eviction works
RAAE is a resource-aware operating-system simulation: users manage simulated apps and resources, run stepwise or comparative workloads, and inspect eviction decisions and analytics. Its central path is simulation control through the eviction policy: Clock selects a candidate, RAAE checks resource conflicts and releases resources safely before eviction. The graph also preserves the documented app-management, resource-management, dashboard, and analytics capabilities. Some UI and analytics wiring is supported by the SOURCE INDEX or README rather than sampled implementation excerpts; uncertain links are omitted.
Main entry points: controller.py Simulation Controller · app.py Application Entry · memory_manager.py Memory Manager · resource_manager.py Resource Manager
Components 24
User Interface
- Application Entry
app.py - Dashboard
ui/dashboard.py - App Controls
ui/app_controls.py - App Actions
ui/app_actions.py - Resource View
ui/resource_view.py - Resource Actions
ui/resource_actions.py - Simulation View
ui/simulation_view.py - Simulation Session
ui/simulation_session.py - Analytics View
ui/analytics_view.py
Simulation
- Workload Generator
backend/workload_generator/workload_generator.py - Simulation Controller
backend/simulation_engine/controller.py - Simulation Engine
backend/simulation_engine/simulation_engine.py - Simulation State
backend/simulation/simulation_state.py
System Managers
- Memory Manager
backend/memory_manager/memory_manager.py - Resource Manager
backend/resource_manager/resource_manager.py - App And Resource Models
backend/models/app.py
Eviction Decision
- Eviction Policies
backend/simulation_engine/policies.py - RAAE Engine
backend/raae_engine/raae_engine.py - Conflict Adapter
backend/raae_engine/conflict_manager.py - Wound-Wait Resolver
backend/conflict_manager/conflict_manager.py
Persistence And Analytics
- SQLite Database
database/db.py - Data Repositories
database/repositories.py - Historical Analytics
database/analytics.py
Other components
- User
Connections 30
- User → Application Entry: uses
- Application Entry → Dashboard: routes to
app.py - Application Entry → App Controls: routes to
app.py - Application Entry → Simulation View: routes to
app.py - Application Entry → Resource View: routes to
app.py - Application Entry → Analytics View: routes to
app.py - App Controls → App Actions: uses
ui/app_controls.py - Resource View → Resource Actions: uses
ui/resource_view.py - Simulation View → Simulation Session: uses
ui/simulation_view.py - Analytics View → Simulation Controller: reads results
ui/analytics_view.py - Analytics View → Workload Generator: uses
ui/analytics_view.py - Simulation Controller → Workload Generator: loads workload
- Simulation Controller → Memory Manager: initializes
backend/simulation_engine/controller.py - Simulation Controller → Resource Manager: initializes
backend/simulation_engine/controller.py - Simulation Controller → SQLite Database: persists events
backend/simulation_engine/controller.py - Simulation Controller → Simulation Engine: runs
backend/simulation_engine/controller.py - Simulation Session → Simulation Controller: controls
ui/simulation_session.py - Simulation Engine → Eviction Policies: evaluates candidate
backend/simulation_engine/simulation_engine.py - Simulation Engine → Memory Manager: selects candidate
backend/simulation_engine/simulation_engine.py - Eviction Policies → RAAE Engine: executes safe eviction
backend/simulation_engine/policies.py - RAAE Engine → Conflict Adapter: checks conflicts
backend/raae_engine/raae_engine.py - Conflict Adapter → Wound-Wait Resolver: delegates resolution
backend/raae_engine/conflict_manager.py - RAAE Engine → Resource Manager: releases safely
- Eviction Policies → Memory Manager: evicts candidate
backend/simulation_engine/policies.py - Simulation State → Memory Manager: delegates memory
backend/simulation/simulation_state.py - Simulation State → Resource Manager: delegates locks
backend/simulation/simulation_state.py - Memory Manager → App And Resource Models: updates app state
backend/memory_manager/memory_manager.py - Resource Manager → App And Resource Models: tracks ownership
backend/resource_manager/resource_manager.py - SQLite Database → Data Repositories: delegates queries
database/db.py - SQLite Database → Historical Analytics: exposes analytics
database/db.py