Commit Graph

9 Commits

Author SHA1 Message Date
Huamonarch
1e781a7c03 feat: add ! negation operator for boolean models
Prefix any boolean model reference with ! to negate its output.
Works with all boolean models: !toggle_2s, !valve_px_std:toggle_2s, !bool_50, etc.
2026-05-13 16:56:30 +08:00
Huamonarch
e4233cc23d fix: add period_ms to linear and drift models to prevent unbounded divergence
Without period, y=k*t+b and y=base+drift_rate*t grow infinitely, which is
unrealistic for industrial simulation. period_ms makes t wrap modulo the period,
producing sawtooth patterns that simulate per-cycle behavior (e.g. tension build-up
per coil, sensor drift per shift).
2026-05-13 16:34:00 +08:00
Huamonarch
d9b4ee8eb3 fix: prevent ValvePairModel stuck-state by freezing prev_action during delay 2026-05-13 15:43:56 +08:00
Huamonarch
b4bb27f1e5 feat: add ModelRegistry with JSON loading and composite model
Add CompositeModel for combining base+noise models, ModelRegistry singleton
with JSON-based model template loading, per-instance-key model isolation,
and inline CSV/valve pair/composite syntax parsing in createModel.
2026-05-13 15:20:51 +08:00
Huamonarch
4f83e41c0c feat: add ValvePairModel with jitter/flash/over-delay 2026-05-13 15:15:14 +08:00
Huamonarch
3ce03911c3 feat: add 3 boolean signal models 2026-05-13 15:13:31 +08:00
Huamonarch
2ef663af81 feat: add CsvReplayModel for CSV data replay 2026-05-13 15:12:04 +08:00
Huamonarch
afd753f803 feat: add 7 analog signal models (constant, normal, linear, sine, uniform, spike, drift) 2026-05-13 15:10:37 +08:00
Huamonarch
6afce89326 feat: add IModel base interface 2026-05-13 15:07:59 +08:00