Files
starcodedoc-demo-js-test-ev…/README.md
2026-09-25 11:58:32 +08:00

31 lines
682 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 试验现场事件关联台账
语言:JavaScript ES2022
## 项目目标
汇总试验现场设备告警、操作员确认和恢复事件,形成未闭环事件清单与状态变迁记录
## 模块
- 事件模型:校验事件字段
- 关联器:按设备与告警编号归组
- 状态机:识别告警、确认与恢复顺序
- 报表:输出未闭环事项和异常顺序
## 构建或运行
`node main.mjs`
## 验收重点
用乱序告警、确认、恢复和重复事件验证:闭环状态、待处理数及异常顺序可复核
## 文件
- `src/model.mjs`
- `src/state.mjs`
- `src/correlate.mjs`
- `src/report.mjs`
- `main.mjs`