rts-sim-module/modelrepo/model/common.go
walker c4bc8c640f 重构singleton组件及相关方法接口
调整repo目录结构和命名
初步开始重构仿真实体加载
2023-12-28 16:49:28 +08:00

35 lines
597 B
Go

package model
type ModelType string
const (
// 车站
ModelType_Station ModelType = "Station"
// 站台
ModelType_Stand ModelType = "Stand"
// 屏蔽门
ModelType_PSD ModelType = "PSD"
// Link
ModelType_Link ModelType = "Link"
// 区段
ModelType_Section ModelType = "Section"
// 道岔
ModelType_Turnout ModelType = "Turnout"
// 信号机
ModelType_Signal ModelType = "Signal"
// 应答器
ModelType_Balise ModelType = "Balise"
)
type Uid interface {
Id() string
}
// 模型接口
type Model interface {
// Unique id,唯一id
Uid() Uid
// 模型类型
Type() ModelType
}