28 lines
665 B
Go
28 lines
665 B
Go
|
package umi
|
|||
|
|
|||
|
import "joylink.club/rtsssimulation/cstate"
|
|||
|
|
|||
|
// 用户设备模型与仿真底层设备交互定义
|
|||
|
|
|||
|
// 仿真底层设备模型定义
|
|||
|
// 用户所有设备模型定义须实现该接口
|
|||
|
type IDeviceModel interface {
|
|||
|
GetId() string
|
|||
|
IsSame(other IDeviceModel) bool
|
|||
|
GetType() cstate.DeviceType
|
|||
|
}
|
|||
|
|
|||
|
// 仿真底层道岔模型
|
|||
|
// 用户所有道岔模型定义须实现该接口
|
|||
|
type ISwitchModel interface {
|
|||
|
//道岔转动从0-100耗时,单位ms
|
|||
|
TurningTime() int64
|
|||
|
}
|
|||
|
|
|||
|
// 仿真底层屏蔽门模型
|
|||
|
// 用户所有屏蔽门模型定义须实现该接口
|
|||
|
type IPsdModel interface {
|
|||
|
//屏蔽门移动从0-100耗时,单位ms
|
|||
|
MovingTime() int64
|
|||
|
}
|