rts-sim-module/repository/iscs_bas_dxt.go

147 lines
3.7 KiB
Go
Raw Normal View History

2023-12-25 10:07:59 +08:00
package repository
import "joylink.club/rtsssimulation/repository/model/proto"
//ISCS BAS 大系统相关
// ExhaustPavilion 排风亭
// 有一个输入端口A该端口连接排气管
type ExhaustPavilion struct {
Identity
Code string
}
func NewExhaustPavilion(id string, code string) *ExhaustPavilion {
return &ExhaustPavilion{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_ExhaustPavilion},
Code: code,
}
}
// AirSupplyPavilion 送风亭
// 有一个输出端口A该端口与送风管连接
type AirSupplyPavilion struct {
Identity
Code string
}
func NewAirSupplyPavilion(id string, code string) *AirSupplyPavilion {
return &AirSupplyPavilion{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_AirSupplyPavilion},
Code: code,
}
}
// ElectricControlValve 电动调节阀
// 有两个端口分别为A和B
type ElectricControlValve struct {
Identity
Code string
}
func NewElectricControlValve(id string, code string) *ElectricControlValve {
return &ElectricControlValve{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_ElectricControlValve},
Code: code,
}
}
// ElectricAirValve 电动风阀
// 有两个端口分别为A和B
type ElectricAirValve struct {
Identity
Code string
}
func NewElectricAirValve(id string, code string) *ElectricAirValve {
return &ElectricAirValve{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_ElectricAirValve},
Code: code,
}
}
// GasMixingChamber 混合室静压箱(气体)
// 有四个端口ABC三个端口为输入口D端口为输出口
type GasMixingChamber struct {
Identity
Code string
}
func NewGasMixingChamber(id string, code string) *GasMixingChamber {
return &GasMixingChamber{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_GasMixingChamber},
Code: code,
}
}
// CombinationAirConditioner 组合式空调
// 有四个端口新风输入端口A,工作风输出端口B
// 端口C输出风再通过端口D输入通过C->D实现对风再处理。
type CombinationAirConditioner struct {
Identity
Code string
}
func NewCombinationAirConditioner(id string, code string) *CombinationAirConditioner {
return &CombinationAirConditioner{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_CombinationAirConditioner},
Code: code,
}
}
// AirPurificationDevice 净化装置(对组合式空调B端口输出的工作风进行净化)
// 有两个端口端口A输入端口B输出
type AirPurificationDevice struct {
Identity
Code string
}
func NewAirPurificationDevice(id string, code string) *AirPurificationDevice {
return &AirPurificationDevice{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_AirPurificationDevice},
Code: code,
}
}
// AirCurtain 空气幕
type AirCurtain struct {
Identity
Code string
}
func NewAirCurtain(id string, code string) *AirCurtain {
return &AirCurtain{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_AirCurtain},
Code: code,
}
}
// Fan 风机
type Fan struct {
Identity
Code string
}
func NewFan(id string, code string) *Fan {
return &Fan{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_Fan},
Code: code,
}
}
// GasEnvironment 气体环境(正常空气+有害烟雾)
// 有多个输入口统一为端口A用来为环境补充新鲜空气
// 有多个输出口统一为端口B用户将环境的混浊气体排除
// 排出气体动力源为该环境。
type GasEnvironment struct {
Identity
Code string
}
func NewGasEnvironment(id string, code string) *GasEnvironment {
return &GasEnvironment{
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_GasEnvironment},
Code: code,
}
}