Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
dfd4b0f2
Commit
dfd4b0f2
authored
Jul 13, 2015
by
Maxime Perrotin
Browse files
Add directives at external procedure specification
parent
c2ede186
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/regression/test-simu/orchestrator.pr
View file @
dfd4b0f2
/* CIF PROCESS (297, 59), (150, 75) */
PROCESS orchestrator
/* CIF COMMENT (407, 195), (7
1
, 35) */
/* CIF COMMENT (407, 195), (7
8
, 35) */
COMMENT 'Hello';
/* CIF TEXT (
1
, 138), (
39
8, 328) */
/* CIF TEXT (
0
, 138), (
44
8, 328) */
dcl seq tastE_Peek_id_list := { 1,2,3,4,5};
dcl a myEnum;
...
...
@@ -17,74 +17,74 @@ timer myTimer;
procedure VDM comment '#hello';
fpar in inp fixedIntList,
in/out outp fixedIntList;
external comment '#vdm';
external comment '#vdm
#classname=RemoteCall
';
/* CIF ENDTEXT */
/* CIF START (
743
, 150), (80, 36) */
/* CIF START (
940
, 150), (80, 36) */
START;
/* CIF NEXTSTATE (
748
, 201), (
68
, 34) */
/* CIF NEXTSTATE (
944
, 201), (
72
, 34) */
NEXTSTATE Wait;
/* CIF STATE (1131, 125), (93, 35) */
STATE timeout;
/* CIF INPUT (1116, 180), (122, 35) */
INPUT Paramless_TC;
/* CIF PROCEDURECALL (1077, 230), (200, 35) */
CALL SET_timer(1000, mytimer);
/* CIF NEXTSTATE (1142, 280), (70, 35) */
NEXTSTATE next;
ENDSTATE;
/* CIF STATE (992, 345), (70, 35) */
/* CIF STATE (1210, 345), (74, 35) */
STATE next;
/* CIF INPUT (
965
, 400), (122, 35) */
/* CIF INPUT (
1183
, 400), (122, 35) */
INPUT pulse(a);
/* CIF PROCEDURECALL (
939
, 450), (1
7
3, 35) */
/* CIF PROCEDURECALL (
1137
, 450), (
2
13, 35) */
CALL reset_timer(mytimer);
/* CIF NEXTSTATE (
991
, 500), (70, 35) */
/* CIF NEXTSTATE (
1209
, 500), (70, 35) */
NEXTSTATE wait;
ENDSTATE;
/* CIF STATE (748, 201), (68, 34) */
/* CIF STATE (1349, 125), (100, 35) */
STATE timeout;
/* CIF INPUT (1334, 180), (147, 35) */
INPUT Paramless_TC;
/* CIF PROCEDURECALL (1283, 230), (249, 35) */
CALL SET_timer(1000, mytimer);
/* CIF NEXTSTATE (1370, 280), (74, 35) */
NEXTSTATE next;
ENDSTATE;
/* CIF STATE (944, 201), (72, 34) */
STATE Wait;
/* CIF INPUT (
496
, 255), (
87
, 35) */
/* CIF INPUT (
693
, 255), (
101
, 35) */
INPUT pulse(a);
/* CIF TASK (
469
, 305), (1
39
, 4
0
) */
/* CIF TASK (
658
, 305), (1
70
, 4
8
) */
TASK seq := {0,1,0,1,0},
anint := 478;
/* CIF PROCEDURECALL (
433
, 36
0
), (2
12
, 35) */
/* CIF PROCEDURECALL (
614
, 36
8
), (2
59
, 35) */
CALL writeln('Input param', anint);
/* CIF PROCEDURECALL (
442
, 41
0
), (
193
, 35) */
/* CIF PROCEDURECALL (
624
, 41
8
), (
238
, 35) */
CALL ExternalProc(anint, anint);
/* CIF PROCEDURECALL (
427
, 46
0
), (2
24
, 35) */
/* CIF PROCEDURECALL (
606
, 46
8
), (2
75
, 35) */
CALL writeln('Output param', anint);
/* CIF PROCEDURECALL (
398
, 51
0
), (28
3
, 35) */
/* CIF PROCEDURECALL (
600
, 51
8
), (28
6
, 35) */
CALL writeln('Calling VDM with data');
/* CIF TASK (
389
, 56
0
), (
299
, 35) */
/* CIF TASK (
554
, 56
8
), (
378
, 35) */
TASK for each in fixed: call writeln(each); endfor;
/* CIF PROCEDURECALL (
468
, 61
0
), (1
41
, 35) */
/* CIF PROCEDURECALL (
657
, 61
8
), (1
72
, 35) */
CALL vdm(fixed, fixed);
/* CIF PROCEDURECALL (
4
68, 66
0
), (1
41
, 40) */
/* CIF PROCEDURECALL (6
5
8, 66
8
), (1
70
, 40) */
CALL writeln('Result:');
/* CIF TASK (
389
, 72
0
), (
299
, 35) */
/* CIF TASK (
554
, 72
3
), (
378
, 35) */
TASK for each in fixed: call writeln(each); endfor;
/* CIF OUTPUT (
482
, 77
0
), (1
14
, 35) */
/* CIF OUTPUT (
674
, 77
3
), (1
38
, 35) */
OUTPUT telemetry(a);
/* CIF OUTPUT (
477
, 82
0
), (1
23
, 35) */
/* CIF OUTPUT (
670
, 82
3
), (1
47
, 35) */
OUTPUT peek_list(seq);
/* CIF OUTPUT (
466
, 87
0
), (1
45
, 35) */
/* CIF OUTPUT (
655
, 87
3
), (1
77
, 35) */
OUTPUT peek_fixed(fixed);
/* CIF NEXTSTATE (
504
, 92
0
), (7
0
, 35) */
/* CIF NEXTSTATE (
706
, 92
3
), (7
4
, 35) */
NEXTSTATE next;
/* CIF INPUT (
803
, 255), (1
22
, 35) */
/* CIF INPUT (
1000
, 255), (1
47
, 35) */
INPUT Paramless_TC;
/* CIF PROCEDURECALL (
761
, 305), (2
0
5, 35) */
/* CIF PROCEDURECALL (
947
, 305), (25
3
, 35) */
CALL writeln('Got Paramless TC');
/* CIF PROCEDURECALL (
764
, 355), (2
00
, 35) */
/* CIF PROCEDURECALL (
949
, 355), (2
49
, 35) */
CALL SET_timer(1000, mytimer);
/* CIF OUTPUT (
801
, 405), (1
2
5, 35) */
/* CIF OUTPUT (
998
, 405), (15
0
, 35) */
OUTPUT Paramless_TM;
/* CIF NEXTSTATE (
829
, 455), (70, 35) */
/* CIF NEXTSTATE (
1038
, 455), (70, 35) */
NEXTSTATE wait;
/* CIF INPUT (
977
, 255), (
90
, 35) */
/* CIF INPUT (
1174
, 255), (
104
, 35) */
INPUT mytimer;
/* CIF NEXTSTATE (
977
, 305), (
90
, 35) */
/* CIF NEXTSTATE (
1175
, 305), (
102
, 35) */
NEXTSTATE Timeout;
ENDSTATE;
ENDPROCESS orchestrator;
ENDPROCESS orchestrator;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment