2023-12-28 11:06:46 +08:00
|
|
|
package modelimpl
|
2023-12-27 09:15:26 +08:00
|
|
|
|
2023-12-28 16:49:28 +08:00
|
|
|
import "joylink.club/rtsssimulation/modelrepo/model"
|
2023-12-27 09:15:26 +08:00
|
|
|
|
2024-01-02 18:22:28 +08:00
|
|
|
var _turnout model.Points = (*Turnout)(nil)
|
2023-12-28 11:06:46 +08:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-01-02 18:22:28 +08:00
|
|
|
// GetZzjCount implements model.Points.
|
|
|
|
func (*Turnout) GetZzjCount() int {
|
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
2023-12-28 11:06:46 +08:00
|
|
|
// GetTractionType implements model.Turnout.
|
2024-01-02 18:22:28 +08:00
|
|
|
func (t *Turnout) GetTractionType() model.PointsTractionType {
|
2023-12-28 11:06:46 +08:00
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetALinkPort implements model.Turnout.
|
|
|
|
func (t *Turnout) GetALinkPort() *model.LinkPort {
|
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetBLinkPort implements model.Turnout.
|
|
|
|
func (t *Turnout) GetBLinkPort() *model.LinkPort {
|
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetCLinkPort implements model.Turnout.
|
|
|
|
func (t *Turnout) GetCLinkPort() *model.LinkPort {
|
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Type implements model.Turnout.
|
|
|
|
func (t *Turnout) Type() model.ModelType {
|
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Uid implements model.Turnout.
|
|
|
|
func (t *Turnout) Uid() model.Uid {
|
|
|
|
panic("unimplemented")
|
|
|
|
}
|
|
|
|
|
2023-12-27 09:15:26 +08:00
|
|
|
func NewTurnout(uid string, code string) *Turnout {
|
|
|
|
return &Turnout{
|
|
|
|
uid: uid,
|
|
|
|
code: code,
|
|
|
|
}
|
|
|
|
}
|