2023-09-22 10:53:51 +08:00
|
|
|
|
package system
|
2023-08-22 11:00:14 +08:00
|
|
|
|
|
2023-09-21 16:23:03 +08:00
|
|
|
|
import (
|
|
|
|
|
"joylink.club/rtsssimulation/repository"
|
|
|
|
|
"joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
|
)
|
|
|
|
|
|
2023-09-22 10:53:51 +08:00
|
|
|
|
// system 视角的模型定义
|
2023-08-22 11:00:14 +08:00
|
|
|
|
|
2023-09-21 16:23:03 +08:00
|
|
|
|
type DeviceType = proto.DeviceType
|
|
|
|
|
|
2023-09-22 10:53:51 +08:00
|
|
|
|
// IDeviceModel 仿真底层设备模型定义
|
|
|
|
|
// 用户所有设备模型定义须实现该接口
|
|
|
|
|
type IDeviceModel = repository.Identity
|
|
|
|
|
|
|
|
|
|
// IRelayCRole 获取继电器在具体电路中的角色(组合类型、功能名称)
|
|
|
|
|
// 如信号机3XH-1电路中点灯继电器:组合类型-"3XH-1" 功能名称-"DDJ"
|
|
|
|
|
// 对应设备电路中有继电器的设备模型须实现该接口
|
|
|
|
|
type IRelayCRole = repository.IRelayCRole
|
|
|
|
|
|
2023-09-15 13:48:48 +08:00
|
|
|
|
// IModelManager 模型管理接口
|
2023-09-22 11:02:10 +08:00
|
|
|
|
type IModelManager = repository.IModelManager
|
2023-08-23 16:52:01 +08:00
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
2023-09-15 13:48:48 +08:00
|
|
|
|
// IPsdModel 仿真底层屏蔽门模型
|
2023-08-22 11:00:14 +08:00
|
|
|
|
// 用户所有屏蔽门模型定义须实现该接口
|
2023-09-22 14:39:36 +08:00
|
|
|
|
type IPsdModel = repository.IPsdModel
|