2023-12-27 15:51:28 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
// 车站
|
|
|
|
type Station interface {
|
|
|
|
Model
|
|
|
|
// 车站名
|
|
|
|
Name() string
|
|
|
|
// 是否设备集中站
|
|
|
|
IsEcs() bool
|
2023-12-28 16:49:28 +08:00
|
|
|
// 获取IBP
|
|
|
|
GetIbp() Ibp
|
2023-12-27 15:51:28 +08:00
|
|
|
}
|
2023-12-27 18:09:20 +08:00
|
|
|
|
2023-12-28 14:35:11 +08:00
|
|
|
// 设备集中站(Equipment centralized station)
|
2023-12-28 16:49:28 +08:00
|
|
|
type EcStation interface {
|
2023-12-27 18:09:20 +08:00
|
|
|
Station
|
|
|
|
// 获取所有道岔
|
2024-01-02 18:22:28 +08:00
|
|
|
GetTurnouts() []Points
|
2023-12-27 18:09:20 +08:00
|
|
|
// 获取所有信号机
|
2023-12-28 16:49:28 +08:00
|
|
|
GetSignals() []Signal
|
2023-12-27 18:09:20 +08:00
|
|
|
// 获取所有站台屏蔽门
|
2023-12-28 16:49:28 +08:00
|
|
|
GetPsds() []Psd
|
2023-12-28 11:06:46 +08:00
|
|
|
// 获取所有物理检测区段
|
2023-12-28 16:49:28 +08:00
|
|
|
GetPhysicalSections() []PhysicalSection
|
2023-12-27 18:09:20 +08:00
|
|
|
// 获取联锁驱采表
|
2023-12-28 16:49:28 +08:00
|
|
|
GetCiQCTable()
|
2023-12-27 18:09:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 联锁驱采表
|
|
|
|
type CiQCTable interface {
|
|
|
|
// 驱动码位表(每一位所驱动的继电器uid)
|
|
|
|
QD() []string
|
|
|
|
// 采集码位表(每一位所采集的继电器位置)
|
|
|
|
CJ() []CiCJ
|
|
|
|
}
|
|
|
|
|
|
|
|
// 联锁采集
|
|
|
|
type CiCJ interface {
|
|
|
|
CjPos() []CiCJPos
|
|
|
|
}
|
|
|
|
|
|
|
|
// 联锁采集继电器位置
|
|
|
|
type CiCJPos interface {
|
|
|
|
// 继电器uid
|
|
|
|
RelayId() string
|
|
|
|
// 继电器位置
|
2023-12-28 16:49:28 +08:00
|
|
|
Pos() Relay_Position
|
2023-12-27 18:09:20 +08:00
|
|
|
}
|