rts-sim-module/modelrepo/model_impl/physical_section.go

34 lines
646 B
Go
Raw Normal View History

2023-12-28 11:06:46 +08:00
package modelimpl
2023-12-27 09:15:26 +08:00
import (
"joylink.club/rtsssimulation/modelrepo/model"
2023-12-27 09:15:26 +08:00
)
type PhysicalSection struct {
uid string
code string
apSection model.Model // A端关联区段/道岔
bpSection model.Model // B端关联区段/道岔
linkRanges []*LinkRange // 所属link范围(道岔物理区段为多个)
}
func NewPhysicalSection(uid string, code string) *PhysicalSection {
return &PhysicalSection{
uid: uid,
code: code,
}
}
func (s *PhysicalSection) Uid() string {
return s.uid
}
func (s *PhysicalSection) Type() model.ModelType {
return model.ModelType_Section
2023-12-27 09:15:26 +08:00
}
func (s *PhysicalSection) Code() string {
return s.code
}