Commit 2eff2be6 authored by Bernardo Quaresma Dias's avatar Bernardo Quaresma Dias
Browse files

Atualização de estado auto contida

INSTMPA-1225
parent 6e8e3609
......@@ -4,7 +4,7 @@
-- Arquivo gerado pelo programa MPA
-- Verso: 6.6rc20210713
-- Arquivo: lib-bcss.mpad
-- Data: 14/07/2021 11:39:26
-- Data: 14/07/2021 13:52:43
-- =============================================================================
MPA_5_0 = true
......@@ -1288,19 +1288,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado",
"1008",
},
variables = {
"estado",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -1400,19 +1397,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado",
"1007",
},
variables = {
"estado",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -1708,19 +1702,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado",
"0001",
},
variables = {
"estado",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -4739,19 +4730,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado_ant",
"estado",
},
variables = {
"estado_ant",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -4910,27 +4898,6 @@ Diagrams = {
xmax = 6940,
ymax = 5740,
},
{
type = "Command",
description = "informa\n$result\n($object)",
action = {
_switch = "OBJECTCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {},
variables = {
"estado_ant",
},
classid = "mod_bcss",
objname = "cav_bcss",
member = "estado",
operation = "read",
},
xmin = 4220,
ymin = 4820,
xmax = 4420,
ymax = 4940,
},
{
type = "Jump",
description = "7",
......@@ -5288,7 +5255,7 @@ Diagrams = {
type = "Link",
description = nil,
from = 72,
to = 83,
to = 82,
x = {
6840,
7120,
......@@ -5432,7 +5399,7 @@ Diagrams = {
type = "Link",
description = nil,
from = 25,
to = 86,
to = 85,
x = {
3760,
3760,
......@@ -5818,7 +5785,7 @@ Diagrams = {
type = "Link",
description = "F",
from = 15,
to = 84,
to = 83,
x = {
6840,
7120,
......@@ -6035,7 +6002,7 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 82,
from = 61,
to = 76,
x = {
4320,
......@@ -6044,8 +6011,8 @@ Diagrams = {
4600,
},
y = {
4880,
4980,
5080,
5180,
5980,
6080,
},
......@@ -6356,25 +6323,11 @@ Diagrams = {
5480,
},
},
{
type = "Link",
description = nil,
from = 61,
to = 82,
x = {
4320,
4320,
},
y = {
5080,
4880,
},
},
{
type = "Link",
description = "V",
from = 84,
to = 85,
from = 83,
to = 84,
x = {
7120,
7120,
......@@ -6401,7 +6354,7 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 86,
from = 85,
to = 17,
x = {
3760,
......@@ -6415,8 +6368,8 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 85,
to = 87,
from = 84,
to = 86,
x = {
7120,
7120,
......@@ -6429,8 +6382,8 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 87,
to = 88,
from = 86,
to = 87,
x = {
7120,
7120,
......@@ -6443,8 +6396,8 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 88,
to = 89,
from = 87,
to = 88,
x = {
7120,
7120,
......@@ -6457,8 +6410,8 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 89,
to = 90,
from = 88,
to = 89,
x = {
7120,
7120,
......@@ -6471,8 +6424,8 @@ Diagrams = {
{
type = "Link",
description = nil,
from = 90,
to = 83,
from = 89,
to = 82,
x = {
7120,
7120,
......@@ -6485,8 +6438,8 @@ Diagrams = {
{
type = "Link",
description = "F",
from = 84,
to = 83,
from = 83,
to = 82,
x = {
7120,
7260,
......@@ -9157,19 +9110,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado_ant",
"estado",
},
variables = {
"estado_ant",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -10322,19 +10272,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara\n$parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado_ant",
"estado+500",
},
variables = {
"estado_ant",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -10345,19 +10292,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara\n$parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado_ant",
"estado+800",
},
variables = {
"estado_ant",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -10375,19 +10319,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara\n$parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado_ant",
"estado+900",
},
variables = {
"estado_ant",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......@@ -20840,22 +20781,22 @@ Diagrams = {
is_ret = false,
},
{
name = "estado",
name = "desejado",
type = "INTEGER",
list = false,
value = nil,
comment = nil,
is_arg = true,
is_ret = true,
is_ret = false,
},
{
name = "desejado",
name = "atual",
type = "INTEGER",
list = false,
value = nil,
comment = nil,
is_arg = true,
is_ret = false,
is_arg = false,
is_ret = true,
},
{
name = "reg_estado",
......@@ -20878,7 +20819,7 @@ Diagrams = {
beforemsg = "\"Atualizando estado para: \"..tostring(estado)",
aftermsg = nil,
expressions = {
"estado",
"desejado",
},
variables = {},
classid = "mod_bcss",
......@@ -20887,31 +20828,6 @@ Diagrams = {
operation = "write",
},
xmin = 4900,
ymin = 4540,
xmax = 5100,
ymax = 4660,
},
{
type = "Command",
description = "$variable =\n$expression",
action = {
_switch = "EXPRESSION",
beforemsg = nil,
aftermsg = nil,
expressions = {
"desejado",
},
variables = {
"estado",
},
types = {
"INTEGER",
},
islist = {
false,
},
},
xmin = 4900,
ymin = 4740,
xmax = 5100,
ymax = 4860,
......@@ -20924,7 +20840,7 @@ Diagrams = {
beforemsg = nil,
aftermsg = nil,
expressions = {
"estado ==\ndesejado",
"atual ==\ndesejado",
},
variables = {},
types = {
......@@ -20968,7 +20884,7 @@ Diagrams = {
beforemsg = nil,
aftermsg = nil,
expressions = {
"{cav_bcss;'act-estado';desejado;estado}",
"{cav_bcss;'act-estado';desejado;atual}",
"';'",
},
variables = {
......@@ -20981,76 +20897,97 @@ Diagrams = {
xmax = 5100,
ymax = 5260,
},
{
type = "Command",
description = "informa\n$result\n[$object]",
action = {
_switch = "OBJECTCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {},
variables = {
"atual",
},
classid = "mod_bcss",
objname = "cav_bcss",
member = "estado",
operation = "read",
},
xmin = 4900,
ymin = 5540,
xmax = 5100,
ymax = 5660,
},
},
Links = {
{
type = "Link",
description = nil,
from = 2,
to = 1,
from = 5,
to = 2,
x = {
5000,
5000,
},
y = {
4790,
4600,
5600,
5400,
},
},
{
type = "Link",
description = nil,
from = nil,
to = 3,
description = "F",
from = 2,
to = 4,
x = {
5000,
5000,
},
y = {
5540,
5400,
5200,
},
},
{
type = "Link",
description = "F",
description = nil,
from = 3,
to = 5,
to = 1,
x = {
5000,
5000,
},
y = {
5400,
5200,
5000,
4800,
},
},
{
type = "Link",
description = nil,
from = 4,
to = 2,
to = 3,
x = {
5000,
5000,
},
y = {
5200,
5000,
4800,
},
},
{
type = "Link",
description = nil,
from = 5,
to = 4,
from = nil,
to = 5,
x = {
5000,
5000,
},
y = {
5200,
5000,
5740,
5600,
},
},
},
......@@ -21991,14 +21928,13 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado",
"ok",
},
variables = {
......@@ -22014,19 +21950,16 @@ Diagrams = {
},
{
type = "Command",
description = "{ajusta}\n$result\npara $parameter_3",
description = "$Name\n$parameter_2",
action = {
_switch = "DIAGRAMCALL",
beforemsg = nil,
aftermsg = nil,
expressions = {
"cav_bcss",
"estado",
"nok",
},
variables = {
"estado",
},
variables = {},
diagramid = "{BCSS/actState}",
operation = "call",
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment