Commit 010cb466 authored by Bernardo Quaresma Dias's avatar Bernardo Quaresma Dias
Browse files

Inclusão de versão 4_0 com proteção de navio de apoio

INSTMPA-1320
parent 1267ddbb
......@@ -4,7 +4,7 @@
-- Arquivo gerado pelo programa MPA
-- Verso: 6.6
-- Arquivo: lib-ventgas.mpad
-- Data: 20/09/2021 20:10:42
-- Data: 21/09/2021 18:59:19
-- =============================================================================
MPA_5_0 = true
......@@ -149,7 +149,7 @@ Diagrams = {
beforemsg = nil,
aftermsg = nil,
expressions = {
"{prot_apoio;'prot-apoio';zonasvent;risco_apoio}",
"{prot_apoio;'prot-apoio';zonasvent;risco_zonas_txt;risco_apoio}",
"';'",
},
variables = {
......@@ -157,9 +157,9 @@ Diagrams = {
},
functionid = "list_concat",
},
xmin = 4580,
xmin = 4860,
ymin = 4860,
xmax = 4780,
xmax = 5060,
ymax = 4980,
},
{
......@@ -178,16 +178,16 @@ Diagrams = {
member = "registrar",
operation = "call",
},
xmin = 4580,
xmin = 4860,
ymin = 4660,
xmax = 4780,
xmax = 5060,
ymax = 4780,
},
{
type = "Jump",
description = "step",
x = 4940,
y = 5120,
x = 5180,
y = 4520,
r = 40,
},
{
......@@ -407,25 +407,25 @@ Diagrams = {
false,
},
},
xmin = 4300,
ymin = 4060,
xmax = 4500,
ymax = 4180,
xmin = 4580,
ymin = 4660,
xmax = 4780,
ymax = 4780,
},
{
type = "Command",
description = "atualiza\n$variable_1\ne $variable_2",
description = "atualiza\n$variable_1",
action = {
_switch = "EXPRESSION",
beforemsg = nil,
aftermsg = nil,
expressions = {
"risco_apoio",
"zonasvent",
"risco_zonas_txt",
},
variables = {
"risco_apoio_ant",
"zonasvent_ant",
"risco_zonas_txt_ant",
},
types = {
"BOOLEAN",
......@@ -449,7 +449,7 @@ Diagrams = {
beforemsg = nil,
aftermsg = nil,
expressions = {
"(risco_apoio ~= risco_apoio_ant) or\n(zonasvent ~= zonasvent_ant)",
"(risco_apoio ~= risco_apoio_ant) or \n(risco_zonas_txt ~= risco_zonas_txt_ant)",
},
variables = {},
types = {
......@@ -459,9 +459,9 @@ Diagrams = {
false,
},
},
xmin = 4580,
xmin = 4860,
ymin = 5060,
xmax = 4780,
xmax = 5060,
ymax = 5180,
},
{
......@@ -480,11 +480,126 @@ Diagrams = {
member = "write",
operation = "call",
},
xmin = 4300,
xmin = 4580,
ymin = 4860,
xmax = 4780,
ymax = 4980,
},
{
type = "Command",
description = nil,
action = {
_switch = "OBJECTCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"risco_apoio",
},
variables = {},
classid = "mod_ventgas_ProtNavioApoio",
objname = "prot_apoio",
member = "ret_risco_apoio",
operation = "set",
},
xmin = 4860,
ymin = 4460,
xmax = 5060,
ymax = 4580,
},
{
type = "Command",
description = "$variable_1\n= $expression_1",
action = {
_switch = "EXPRESSION",
beforemsg = nil,
aftermsg = nil,
expressions = {
"{}",
},
variables = {
"l_risco_zonas",
},
types = {
"INTEGER",
},
islist = {
true,
},
},
xmin = 4020,
ymin = 4660,
xmax = 4220,
ymax = 4780,
},
{
type = "Choice",
description = nil,
action = {
_switch = "EXPRESSION",
beforemsg = nil,
aftermsg = nil,
expressions = {
"risco_zona",
},
variables = {},
types = {
"BOOLEAN",
},
islist = {
false,
},
},
xmin = 4580,
ymin = 4460,
xmax = 4780,
ymax = 4580,
},
{
type = "Command",
description = "adiciona\n$expression_1",
action = {
_switch = "EXPRESSION",
beforemsg = nil,
aftermsg = nil,
expressions = {
"idx_zona",
},
variables = {
"l_risco_zonas[#l_risco_zonas+1]",
},
types = {
"INTEGER",
},
islist = {
false,
},
},
xmin = 4580,
ymin = 4260,
xmax = 4500,
xmax = 4780,
ymax = 4380,
},
{
type = "Command",
description = nil,
action = {
_switch = "FUNCTIONCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"l_risco_zonas",
"','",
},
variables = {
"risco_zonas_txt",
},
functionid = "list_concat",
},
xmin = 4580,
ymin = 5060,
xmax = 4780,
ymax = 5180,
},
},
Links = {
{
......@@ -536,10 +651,14 @@ Diagrams = {
to = 5,
x = {
3840,
3980,
3980,
4120,
},
y = {
4720,
4820,
5020,
5120,
},
},
......@@ -563,8 +682,8 @@ Diagrams = {
from = 6,
to = 7,
x = {
4680,
4680,
4960,
4960,
},
y = {
4920,
......@@ -589,14 +708,14 @@ Diagrams = {
type = "Link",
description = nil,
from = 7,
to = 8,
to = 22,
x = {
4680,
4940,
4960,
4960,
},
y = {
4720,
5120,
4520,
},
},
{
......@@ -645,7 +764,7 @@ Diagrams = {
type = "Link",
description = "F",
from = 11,
to = 20,
to = 26,
x = {
4400,
4680,
......@@ -661,8 +780,8 @@ Diagrams = {
from = 20,
to = 6,
x = {
4680,
4680,
4960,
4960,
},
y = {
5120,
......@@ -675,12 +794,14 @@ Diagrams = {
from = 20,
to = 8,
x = {
4680,
4940,
4960,
5180,
5180,
},
y = {
5120,
5120,
4520,
},
},
{
......@@ -729,14 +850,14 @@ Diagrams = {
type = "Link",
description = nil,
from = 13,
to = 11,
to = 23,
x = {
4120,
4400,
4120,
},
y = {
4920,
5120,
4720,
},
},
{
......@@ -760,11 +881,15 @@ Diagrams = {
to = 21,
x = {
4400,
4400,
4540,
4540,
4680,
},
y = {
4520,
4320,
4620,
4820,
4920,
},
},
{
......@@ -787,12 +912,86 @@ Diagrams = {
from = 21,
to = 18,
x = {
4680,
4680,
},
y = {
4920,
4720,
},
},
{
type = "Link",
description = nil,
from = 22,
to = 8,
x = {
4960,
5180,
},
y = {
4520,
4520,
},
},
{
type = "Link",
description = nil,
from = 23,
to = 11,
x = {
4120,
4260,
4260,
4400,
4400,
},
y = {
4720,
4820,
5020,
5120,
},
},
{
type = "Link",
description = nil,
from = 18,
to = 24,
x = {
4680,
4680,
},
y = {
4720,
4520,
},
},
{
type = "Link",
description = "V",
from = 24,
to = 25,
x = {
4680,
4680,
},
y = {
4520,
4320,
4120,
},
},
{
type = "Link",
description = nil,
from = 26,
to = 20,
x = {
4680,
4960,
},
y = {
5120,
5120,
},
},
},
......@@ -823,13 +1022,13 @@ Diagrams = {
x = {
4280,
4280,
4520,
4520,
4800,
4800,
},
y = {
5220,
4040,
4040,
4240,
4240,
5220,
},
},
......@@ -839,15 +1038,15 @@ Diagrams = {
bgcolor = "255 255 200",
alignment = 5,
x = {
4560,
4560,
4800,
4800,
4840,
4840,
5080,
5080,
},
y = {
5220,
4640,
4640,
4440,
4440,
5220,
},
},
......@@ -8998,7 +9197,7 @@ Diagrams = {
id = "VentGas/monOperVent: Mon. Oper. Vent.",
name = "VentGas/monOperVent: Mon. Oper. Vent.",
kind = "Flow",
description = "Monitora o estado das vlvulas de vent e condies\ndo vento e presso para determinar os alarmes para operao.\n\n---\n\nFluxo responsvel por monitorar a presso e vento atual;\nIndicando ao Operador, alarmes sobre as vlvulas ventgas:\n-Alarme para Abertura (duas etapas) de Vlvula(s)\n-Alarme para Fechamento de Vlvula(s)\n-Alarme para Restrio de Vlvula(s)\nOBS: Fluxo no atua em Offloading",
description = "Monitora Operao de Vlvulas de Vent e avalia retorno das\ndemais monitoraes e, opcionalmente, da Proteo de Navio\nde Apoio para determinar a sugesto de ao para o\nOperador.",
isApplication = false,
globals = {
{
......@@ -9041,15 +9240,15 @@ Diagrams = {
false,
},
},
xmin = 4280,
xmin = 3720,
ymin = 4460,
xmax = 4480,
xmax = 3920,
ymax = 4580,
},
{
type = "Jump",
description = "step",
x = 3260,
x = 2980,
y = 5320,
r = 40,
},
......@@ -9072,9 +9271,9 @@ Diagrams = {
diagramid = "{VentGas/evalInfoVento}",
operation = "call",
},
xmin = 3720,
xmin = 3440,
ymin = 4660,
xmax = 3920,
xmax = 3640,
ymax = 4780,
},
{
......@@ -9093,9 +9292,9 @@ Diagrams = {
member = "ret_vento_ok",
operation = "set",
},
xmin = 5680,
xmin = 5400,
ymin = 4260,
xmax = 5880,
xmax = 5600,
ymax = 4380,
},
{
......@@ -9116,10 +9315,10 @@ Diagrams = {
false,
},
},
xmin = 4000,
ymin = 4460,
xmax = 4200,
ymax = 4580,
xmin = 3720,
ymin = 4260,
xmax = 3920,
ymax = 4380,
},
{
type = "Command",
......@@ -9179,9 +9378,9 @@ Diagrams = {
member = "ativar",
operation = "call",
},
xmin = 5400,
xmin = 5120,
ymin = 4860,
xmax = 5600,
xmax = 5320,
ymax = 4980,
},
{
......@@ -9197,9 +9396,9 @@ Diagrams = {
variables = {},
functionid = "esperar",
},
xmin = 3160,
xmin = 2880,
ymin = 4060,
xmax = 3360,
xmax = 3080,
ymax = 4180,
},
{
......@@ -9218,9 +9417,9 @@ Diagrams = {
member = "ret_eval_prs_baixa",
operation = "get",
},
xmin = 3720,
xmin = 3440,
ymin = 4460,
xmax = 3920,
xmax = 3640,
ymax = 4580,
},
{
......@@ -9239,9 +9438,9 @@ Diagrams = {
member = "ativar",
operation = "call",
},
xmin = 5400,
xmin = 5120,
ymin = 4460,
xmax = 5600,
xmax = 5320,
ymax = 4580,
},
{
......@@ -9260,9 +9459,9 @@ Diagrams = {
member = "ativar",
operation = "call",
},
xmin = 5400,
xmin = 5120,
ymin = 4660,
xmax = 5600,
xmax = 5320,
ymax = 4780,
},
{
......@@ -9304,9 +9503,9 @@ Diagrams = {
false,
},
},
xmin = 3440,
xmin = 3160,
ymin = 4460,
xmax = 3640,
xmax = 3360,
ymax = 4580,
},
{
......@@ -9327,10 +9526,10 @@ Diagrams = {
false,
},
},
xmin = 4280,
ymin = 5060,
xmax = 4480,
ymax = 5180,
xmin = 4000,
ymin = 4860,
xmax = 4200,
ymax = 4980,
},
{
type = "Command",
......@@ -9348,9 +9547,9 @@ Diagrams = {
member = "ret_rec_ab_valv",
operation = "write",
},
xmin = 5680,
xmin = 5400,
ymin = 4460,
xmax = 5880,
xmax = 5600,
ymax = 4580,
},
{
......@@ -9371,9 +9570,9 @@ Diagrams = {
false,
},
},
xmin = 4000,
xmin = 3720,
ymin = 4660,
xmax = 4200,
xmax = 3920,
ymax = 4780,
},
{
......@@ -9392,9 +9591,9 @@ Diagrams = {
member = "desativar",
operation = "call",
},
xmin = 4840,
xmin = 4560,
ymin = 4460,
xmax = 5040,
xmax = 4760,
ymax = 4580,
},
{
......@@ -9413,9 +9612,9 @@ Diagrams = {
member = "desativar",
operation = "call",
},
xmin = 4840,
xmin = 4560,
ymin = 4860,
xmax = 5040,
xmax = 4760,
ymax = 4980,
},
{
......@@ -9434,9 +9633,9 @@ Diagrams = {
member = "desativar",
operation = "call",
},
xmin = 4840,
xmin = 4560,