2024-03-07 17:40:51 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
|
|
|
|
type Xcj struct {
|
|
|
|
Identity
|
|
|
|
componentGroups []*ElectronicComponentGroup
|
2024-04-02 14:09:41 +08:00
|
|
|
NumSegments uint32
|
2024-03-07 17:40:51 +08:00
|
|
|
}
|
|
|
|
|
2024-04-02 14:09:41 +08:00
|
|
|
func NewXcj(id string, numSegments uint32) *Xcj {
|
2024-03-07 17:40:51 +08:00
|
|
|
return &Xcj{
|
2024-04-02 14:09:41 +08:00
|
|
|
Identity: identity{id: id, deviceType: proto.DeviceType_DeviceType_Xcj},
|
|
|
|
NumSegments: numSegments,
|
2024-03-07 17:40:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *Xcj) ComponentGroups() []*ElectronicComponentGroup {
|
|
|
|
return p.componentGroups
|
|
|
|
}
|