rts-sim-module/repository/mkx.go

57 lines
737 B
Go
Raw Permalink Normal View History

package repository
import "joylink.club/rtsssimulation/repository/model/proto"
type Mkx struct {
Identity
psd *Psd
pcb *Button
pob *Button
pab *Button
mpl *Button
pcbj *Relay
pobj *Relay
pabj *Relay
}
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) Pob() *Button {
return m.pob
}
func (m *Mkx) Pab() *Button {
return m.pab
}
func (m *Mkx) Mpl() *Button {
return m.mpl
}
func (m *Mkx) Pcbj() *Relay {
return m.pcbj
}
func (m *Mkx) Pobj() *Relay {
return m.pobj
}
func (m *Mkx) Pabj() *Relay {
return m.pabj
}