iscs pscada 一次图 repository
This commit is contained in:
parent
d796011823
commit
17cafe3946
@ -1,3 +0,0 @@
|
||||
package component
|
||||
|
||||
//ISCS 管线相关
|
@ -586,6 +586,8 @@ message Disconnector{
|
||||
message VoltageTransformer{
|
||||
string id = 1;
|
||||
string code = 2;
|
||||
uint32 e1 = 3;//一次侧电动势
|
||||
uint32 e2 = 4;//二次侧电动势
|
||||
}
|
||||
|
||||
//电源
|
||||
|
@ -278,15 +278,19 @@ func (p *DisconnectorPort) Device() PortedDevice {
|
||||
type VoltageTransformer struct {
|
||||
Identity
|
||||
Code string
|
||||
E1 uint32 //一次侧电动势,单位V
|
||||
E2 uint32 //二次侧电动势,单位V
|
||||
PortA *PipePort //变压器A端口连接的管线
|
||||
PortB *PipePort //变压器B端口连接的管线
|
||||
PortC *PipePort //变压器C端口连接的管线
|
||||
}
|
||||
|
||||
func NewVoltageTransformer(id string, code string) *VoltageTransformer {
|
||||
func NewVoltageTransformer(id string, code string, e1 uint32, e2 uint32) *VoltageTransformer {
|
||||
return &VoltageTransformer{
|
||||
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_VoltageTransformer},
|
||||
Code: code,
|
||||
E1: e1,
|
||||
E2: e2,
|
||||
}
|
||||
}
|
||||
func (p *VoltageTransformer) PortNum() int {
|
||||
|
@ -3856,6 +3856,8 @@ type VoltageTransformer struct {
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
||||
E1 uint32 `protobuf:"varint,3,opt,name=e1,proto3" json:"e1,omitempty"` //一次侧电动势
|
||||
E2 uint32 `protobuf:"varint,4,opt,name=e2,proto3" json:"e2,omitempty"` //二次侧电动势
|
||||
}
|
||||
|
||||
func (x *VoltageTransformer) Reset() {
|
||||
@ -3904,6 +3906,20 @@ func (x *VoltageTransformer) GetCode() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *VoltageTransformer) GetE1() uint32 {
|
||||
if x != nil {
|
||||
return x.E1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *VoltageTransformer) GetE2() uint32 {
|
||||
if x != nil {
|
||||
return x.E2
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 电源
|
||||
// 只有一个输出端口A
|
||||
type PowerSource struct {
|
||||
@ -4441,10 +4457,12 @@ var file_model_proto_rawDesc = []byte{
|
||||
0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63,
|
||||
0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22,
|
||||
0x38, 0x0a, 0x12, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66,
|
||||
0x58, 0x0a, 0x12, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66,
|
||||
0x6f, 0x72, 0x6d, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x5b, 0x0a, 0x0b, 0x50, 0x6f, 0x77,
|
||||
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x31, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x65, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x65, 0x32, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x65, 0x32, 0x22, 0x5b, 0x0a, 0x0b, 0x50, 0x6f, 0x77,
|
||||
0x65, 0x72, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02,
|
||||
|
@ -41,7 +41,7 @@ func buildIscsModels(source *proto.Repository, repository *Repository) error {
|
||||
}
|
||||
//ISCS变压器
|
||||
for _, protoData := range source.VoltageTransformers {
|
||||
m := NewVoltageTransformer(protoData.Id, protoData.Code)
|
||||
m := NewVoltageTransformer(protoData.Id, protoData.Code, protoData.E1, protoData.E2)
|
||||
repository.VoltageTransformerMap[m.Id()] = m
|
||||
}
|
||||
//ISCS电源
|
||||
|
@ -2,7 +2,7 @@ package iscs_sys
|
||||
|
||||
import "joylink.club/ecs"
|
||||
|
||||
// PowerTransmissionSystem 电力传递
|
||||
// PowerTransmissionSystem 电力传递系统
|
||||
type PowerTransmissionSystem struct {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user