rts-sim-module/modelrepo/model_impl/turnout.go
walker 7751d9d926 组件定义调整
道岔命名调整,道岔实体构建重构
2024-01-02 18:22:28 +08:00

67 lines
1.3 KiB
Go

package modelimpl
import "joylink.club/rtsssimulation/modelrepo/model"
var _turnout model.Points = (*Turnout)(nil)
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
}
// GetZzjCount implements model.Points.
func (*Turnout) GetZzjCount() int {
panic("unimplemented")
}
// GetTractionType implements model.Turnout.
func (t *Turnout) GetTractionType() model.PointsTractionType {
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")
}
func NewTurnout(uid string, code string) *Turnout {
return &Turnout{
uid: uid,
code: code,
}
}