Implements WiFi-Mat (Mass Casualty Assessment Tool) for detecting and localizing survivors trapped in rubble, earthquakes, and natural disasters. Architecture: - Domain-Driven Design with bounded contexts (Detection, Localization, Alerting) - Modular Rust crate integrating with existing wifi-densepose-* crates - Event-driven architecture for audit trails and distributed deployments Features: - Breathing pattern detection from CSI amplitude variations - Heartbeat detection using micro-Doppler analysis - Movement classification (gross, fine, tremor, periodic) - START protocol-compatible triage classification - 3D position estimation via triangulation and depth estimation - Real-time alert generation with priority escalation Documentation: - ADR-001: Architecture Decision Record for wifi-Mat - DDD domain model specification
27 lines
811 B
Rust
27 lines
811 B
Rust
//! Domain module containing core entities, value objects, and domain events.
|
|
//!
|
|
//! This module follows Domain-Driven Design principles with:
|
|
//! - **Entities**: Objects with identity (Survivor, DisasterEvent, ScanZone)
|
|
//! - **Value Objects**: Immutable objects without identity (VitalSignsReading, Coordinates3D)
|
|
//! - **Domain Events**: Events that capture domain significance
|
|
//! - **Aggregates**: Consistency boundaries (DisasterEvent is the root)
|
|
|
|
pub mod alert;
|
|
pub mod coordinates;
|
|
pub mod disaster_event;
|
|
pub mod events;
|
|
pub mod scan_zone;
|
|
pub mod survivor;
|
|
pub mod triage;
|
|
pub mod vital_signs;
|
|
|
|
// Re-export all domain types
|
|
pub use alert::*;
|
|
pub use coordinates::*;
|
|
pub use disaster_event::*;
|
|
pub use events::*;
|
|
pub use scan_zone::*;
|
|
pub use survivor::*;
|
|
pub use triage::*;
|
|
pub use vital_signs::*;
|