rts-sim-module/repository/iscs_pscada_auto_system.go

32 lines
656 B
Go
Raw Permalink Normal View History

2023-12-22 15:00:34 +08:00
package repository
import "joylink.club/rtsssimulation/repository/model/proto"
//PSCADA 自动化系统图
// NetworkSwitch 网络交换机
type NetworkSwitch struct {
Identity
Code string
}
func NewNetworkSwitch(id string, code string) *NetworkSwitch {
return &NetworkSwitch{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_NetworkSwitch},
Code: code,
}
}
// WireCabinet 线柜
type WireCabinet struct {
Identity
Code string
}
func NewWireCabinet(id string, code string) *WireCabinet {
return &WireCabinet{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_WireCabinet},
Code: code,
}
}