rts-sim-module/repository/platform.go

33 lines
550 B
Go
Raw Normal View History

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Platform struct {
Identity
code string
station *Station
2023-12-29 17:58:39 +08:00
section *PhysicalSection
}
func NewPlatform(id string, code string) *Platform {
return &Platform{
Identity: identity{
id: id,
deviceType: proto.DeviceType_DeviceType_Platform,
},
code: code,
}
}
func (p *Platform) Code() string {
return p.code
}
func (p *Platform) Station() *Station {
return p.station
}
2023-12-29 17:58:39 +08:00
func (p *Platform) Section() *PhysicalSection {
return p.section
}