67 lines
1.3 KiB
Go
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,
|
|
}
|
|
}
|