2023-12-27 09:15:26 +08:00
|
|
|
package impl
|
|
|
|
|
2023-12-27 15:59:46 +08:00
|
|
|
import "joylink.club/rtsssimulation/cgrepo/model"
|
2023-12-27 09:15:26 +08:00
|
|
|
|
|
|
|
type Turnout struct {
|
|
|
|
uid string
|
|
|
|
code string
|
|
|
|
|
|
|
|
// A端关联区段/道岔
|
|
|
|
apSection model.Model
|
|
|
|
// B端关联区段/道岔
|
|
|
|
bpSection model.Model
|
|
|
|
// C端关联区段/道岔
|
|
|
|
cpSection model.Model
|
|
|
|
|
|
|
|
// A方向Link
|
|
|
|
adLink *Link
|
|
|
|
// B方向Link
|
|
|
|
bdLink *Link
|
|
|
|
// C方向Link
|
|
|
|
cdLink *Link
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewTurnout(uid string, code string) *Turnout {
|
|
|
|
return &Turnout{
|
|
|
|
uid: uid,
|
|
|
|
code: code,
|
|
|
|
}
|
|
|
|
}
|