rts-sim-module/repository/psd_psl.go
2024-03-26 13:12:16 +08:00

108 lines
1.5 KiB
Go

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type PsdPsl struct {
Identity
psd *Psd
pcb *Button
pcbpl *Button
pcbj *Relay
pob *Button
pobpl *Button
pobj *Relay
pab *Button
pabpl *Button
pabj *Relay
wrzf *Button
wrzfpl *Button
wrzfj *Relay
qkqr *Button
qkqrpl *Button
qkqrj *Relay
mpl *Button
jxtcpl *Button
}
func NewPsdPsl(id string) *PsdPsl {
return &PsdPsl{
Identity: identity{
id: id,
deviceType: proto.DeviceType_DeviceType_Mkx,
},
}
}
func (m *PsdPsl) Psd() *Psd {
return m.psd
}
func (m *PsdPsl) Pcb() *Button {
return m.pcb
}
func (m *PsdPsl) Pcbpl() *Button {
return m.pcbpl
}
func (m *PsdPsl) Pcbj() *Relay {
return m.pcbj
}
func (m *PsdPsl) Pob() *Button {
return m.pob
}
func (m *PsdPsl) Pobpl() *Button {
return m.pobpl
}
func (m *PsdPsl) Pobj() *Relay {
return m.pobj
}
func (m *PsdPsl) Pab() *Button {
return m.pab
}
func (m *PsdPsl) Pabpl() *Button {
return m.pabpl
}
func (m *PsdPsl) Pabj() *Relay {
return m.pabj
}
func (m *PsdPsl) Wrzf() *Button {
return m.wrzf
}
func (m *PsdPsl) Wrzfpl() *Button {
return m.wrzfpl
}
func (m *PsdPsl) Wrzfj() *Relay {
return m.wrzfj
}
func (m *PsdPsl) Qkqr() *Button {
return m.qkqr
}
func (m *PsdPsl) Qkqrpl() *Button {
return m.qkqrpl
}
func (m *PsdPsl) Qkqrj() *Relay {
return m.qkqrj
}
func (m *PsdPsl) Mpl() *Button {
return m.mpl
}
func (m *PsdPsl) Jxtcpl() *Button {
return m.jxtcpl
}