Gist d8e5b5b093bedd65394938d6c1723aba
This example demonstrates a digital twin simulation for a production line, visualizing machine states, sensor parameters, and event history in an ASP.NET Core MVC interface. The dashboard renders machine status indicators and control consoles, with the underlying C# code using the State pattern to manage lifecycle transitions (Apagada, Operando, Falla, Mantenimiento) and the Observer pattern for state-change notifications. Sensor data and machine configurations are simulated via a `MachineFactory` and `MachineSimulatorService`, while the view leverages ViewModels to display the virtual control panel. The implementation avoids real hardware integration, focusing on a reproducible MVC architecture with task-based concurrency instead of blocking `Thread.Sleep()` calls.
AI-generated description