iscs pscada 一次图 repository
This commit is contained in:
parent
b5d3f89b4e
commit
2b72e6475f
@ -7,14 +7,14 @@ import "joylink.club/rtsssimulation/repository/model/proto"
|
||||
// Pipe 管线模型
|
||||
type Pipe struct {
|
||||
Identity
|
||||
Code string
|
||||
Type proto.Pipe_Type
|
||||
PortA DevicePort //管线的A端连接的设备
|
||||
PortB DevicePort //管线的B端连接的设备
|
||||
Code string
|
||||
PipeType proto.Pipe_Type
|
||||
PortA DevicePort //管线的A端连接的设备
|
||||
PortB DevicePort //管线的B端连接的设备
|
||||
}
|
||||
|
||||
func NewPipe(id string, code string, pipeType proto.Pipe_Type) *Pipe {
|
||||
return &Pipe{Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_Pipe}, Code: code, Type: pipeType}
|
||||
return &Pipe{Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_Pipe}, Code: code, PipeType: pipeType}
|
||||
}
|
||||
func (p *Pipe) PortNum() int {
|
||||
return 2
|
||||
|
Loading…
Reference in New Issue
Block a user