30 lines
463 B
Go
30 lines
463 B
Go
package impl
|
|
|
|
import "joylink.club/rtsssimulation/cgrepo/model"
|
|
|
|
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,
|
|
}
|
|
}
|