1.当前项目的项目的重点在initSimulation初始化模拟数据,以及runSimulation对模拟数据调用推理接口进行推理并把结束入库。这是一个初始版本,但是可能考虑不全面。尤其初始化模拟数据。 2.初始化数据,需要考虑一下几个方面: 1.1 项目设备属性、物料属性的静态值 1.2 模拟场景中始发事件设置的初始值(对应场景,event表attr_changeszi段定义了始发事件描述: {"unit": "cm", "label": "条件3", "device": "圆柱槽02", "target": {"entityId": "94f20d37-89df-4fc1-b70c-06021fb10bc0", "property": "u_concentration", "entityType": "material"}, "material": "u_concentration", "segments": [{"end": "10", "start": "1", "timeline": [{"t": "1", "value": "20"}, {"t": "2", "value": "40"}, {"t": "3", "value": "60"}, {"t": "4", "value": "80"}, {"t": "5", "value": "100"}, {"t": "6", "value": "120"}, {"t": "7", "value": "150"}, {"t": "8", "value": "200"}, {"t": "9", "value": "250"}, {"t": "10", "value": "300"}], "segmentId": "分段-1"}]}。) 1.3 项目建模时,设备重要信息(包括deviceId,type,有影响关系的设备属性"properties"),跟设备1对1的物料重要信息(包括id,有影响关系的物料属性)需要重点关注。每个属性的影响关系,可能有多个source属性。 { "projectId": "proj-0001-uuid", "name": "测试项目", "devices": [ { "deviceId": "dev-002-uuid", "name": "设备01", "type": "CylindricalTank", "properties": { "height": { "type": "influence", "unit": "cm", "base": 0, "bias": 0, "sources": [ { "entityType": "device", "entityId": "dev-002-uuid", "property": "diameter", "coefficient": 1, "delay": { "enabled": true, "time": 0, "unit": "s" } } ], "expression": "dev-002-uuid.diameter*1" } }, "material": { "materialId": "material-1", "name": "1A", "properties": { } }, "ui": { "position": { "x": 200, "y": 500 }, "size": { "width": 140, "height": 90 } } }, { "deviceId": "dev-003-uuid", "name": "设备02", "type": "AnnularTank", "properties": { "height": { "type": "influence", "unit": "cm", "base": 0, "bias": 0, "sources": [ { "entityType": "device", "entityId": "dev-003-uuid", "property": "diameter", "coefficient": 1, "delay": { "enabled": true, "time": 0, "unit": "s" } } ], "expression": "dev-003-uuid.diameter*1+bias" } }, "material": { "materialId": "material-2", "name": "2B", "properties": { } }, "ui": { "position": { "x": 500, "y": 500 }, "size": { "width": 140, "height": 90 } } } ], "pipelines": [ { "pipelineId": "E_D01_D02", "from": "dev-002-uuid", "to": "dev-003-uuid", "line_type": "single_arrow", "path": [ { "x": 340, "y": 545 }, { "x": 500, "y": 545 } ] } ], "systemboundaries": [ { "boundary_id": "boundary_001", "name": "系统边界1", "type": "rectangle", "geometry": { "x": 100, "y": 400, "width": 900, "height": 300 }, "line_style": { "type": "solid", "width": 3, "color": "#2563EB" }, "description": "系统核心功能区域" } ], "globalDisplay": { "device": { "showProperties": [ "height", "diameter" ] }, "material": { "showProperties": [ "u_concentration" ] } } } 3.重点分析一下当前版本的initSimulation,有哪些问题。再结合第2点提供的内容,给出建议,写在情景模拟分析结果.md文件中。 4.有个半成品的迭代版本,SimController,还不够完全,也可以参考一下,一起分析一下。 5.再分析一下runSimulation接口,有哪些问题。有新的需求变更,要求场景表,针对项目设备设置算法类型。整体分析一下。写在情景模拟分析结果.md文件