108 lines
1.4 KiB
Go
108 lines
1.4 KiB
Go
package repository
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
type Mkx 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 NewMkx(id string) *Mkx {
|
|
return &Mkx{
|
|
Identity: identity{
|
|
id: id,
|
|
deviceType: proto.DeviceType_DeviceType_Mkx,
|
|
},
|
|
}
|
|
}
|
|
|
|
func (m *Mkx) Psd() *Psd {
|
|
return m.psd
|
|
}
|
|
|
|
func (m *Mkx) Pcb() *Button {
|
|
return m.pcb
|
|
}
|
|
|
|
func (m *Mkx) Pcbpl() *Button {
|
|
return m.pcbpl
|
|
}
|
|
|
|
func (m *Mkx) Pcbj() *Relay {
|
|
return m.pcbj
|
|
}
|
|
|
|
func (m *Mkx) Pob() *Button {
|
|
return m.pob
|
|
}
|
|
|
|
func (m *Mkx) Pobpl() *Button {
|
|
return m.pobpl
|
|
}
|
|
|
|
func (m *Mkx) Pobj() *Relay {
|
|
return m.pobj
|
|
}
|
|
|
|
func (m *Mkx) Pab() *Button {
|
|
return m.pab
|
|
}
|
|
|
|
func (m *Mkx) Pabpl() *Button {
|
|
return m.pabpl
|
|
}
|
|
|
|
func (m *Mkx) Pabj() *Relay {
|
|
return m.pabj
|
|
}
|
|
|
|
func (m *Mkx) Wrzf() *Button {
|
|
return m.wrzf
|
|
}
|
|
|
|
func (m *Mkx) Wrzfpl() *Button {
|
|
return m.wrzfpl
|
|
}
|
|
|
|
func (m *Mkx) Wrzfj() *Relay {
|
|
return m.wrzfj
|
|
}
|
|
|
|
func (m *Mkx) Qkqr() *Button {
|
|
return m.qkqr
|
|
}
|
|
|
|
func (m *Mkx) Qkqrpl() *Button {
|
|
return m.qkqrpl
|
|
}
|
|
|
|
func (m *Mkx) Qkqrj() *Relay {
|
|
return m.qkqrj
|
|
}
|
|
|
|
func (m *Mkx) Mpl() *Button {
|
|
return m.mpl
|
|
}
|
|
|
|
func (m *Mkx) Jxtcpl() *Button {
|
|
return m.jxtcpl
|
|
}
|