rts-sim-module/repository/psd.go

24 lines
440 B
Go

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Psd struct {
Identity
platformId string
componentGroups []*ElectronicComponentGroup
}
func newPsd(id string) *Psd {
return &Psd{
Identity: identity{id, proto.DeviceType_DeviceType_Psd},
}
}
func (p *Psd) PlatformId() string {
return p.platformId
}
func (p *Psd) ComponentGroups() []*ElectronicComponentGroup {
return p.componentGroups
}