orchestrator.pr 2.24 KB
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
1
2
3
4
5
6
7
8
9
10
/* CIF PROCESS (295, 56), (150, 75) */
PROCESS orchestrator
/* CIF COMMENT (405, 192), (71, 35) */
COMMENT 'Hello';
    /* CIF TEXT (0, 94), (398, 312) */
    dcl seq tastE_Peek_id_list := { 1,2,3,4,5};

dcl a myEnum;

dcl fixed fixedIntList := { 1,2,3};
11
12
13
14

dcl anInt T_UInt32 :=0;

timer myTimer;
Maxime Perrotin's avatar
Maxime Perrotin committed
15
    /* CIF ENDTEXT */
Maxime Perrotin's avatar
Maxime Perrotin committed
16
    /* CIF START (708, 150), (80, 36) */
Maxime Perrotin's avatar
Maxime Perrotin committed
17
    START;
18
        /* CIF NEXTSTATE (713, 201), (68, 34) */
Maxime Perrotin's avatar
Maxime Perrotin committed
19
        NEXTSTATE Wait;
20
21
22
23
24
25
26
27
28
    /* CIF STATE (957, 345), (70, 35) */
    STATE next;
        /* CIF INPUT (930, 400), (122, 35) */
        INPUT pulse(a);
            /* CIF PROCEDURECALL (904, 450), (173, 35) */
            CALL reset_timer(mytimer);
            /* CIF NEXTSTATE (956, 500), (70, 35) */
            NEXTSTATE wait;
    ENDSTATE;
Maxime Perrotin's avatar
Maxime Perrotin committed
29
30
    /* CIF STATE (980, 125), (93, 35) */
    STATE timeout;
31
32
33
        /* CIF INPUT (965, 180), (122, 35) */
        INPUT Paramless_TC;
            /* CIF PROCEDURECALL (926, 230), (200, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
34
35
36
37
            CALL SET_timer(1000, mytimer);
            /* CIF NEXTSTATE (992, 280), (70, 35) */
            NEXTSTATE next;
    ENDSTATE;
38
    /* CIF STATE (713, 201), (68, 34) */
Maxime Perrotin's avatar
Maxime Perrotin committed
39
    STATE Wait;
40
        /* CIF INPUT (461, 255), (87, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
41
        INPUT pulse(a);
42
            /* CIF PROCEDURECALL (407, 305), (193, 35) */
43
            CALL externalProc(anint, anint);
44
            /* CIF OUTPUT (447, 355), (114, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
45
            OUTPUT telemetry(a);
46
            /* CIF OUTPUT (442, 405), (123, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
47
            OUTPUT peek_list(seq);
48
            /* CIF OUTPUT (431, 455), (145, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
49
            OUTPUT peek_fixed(fixed);
50
            /* CIF NEXTSTATE (469, 505), (70, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
51
            NEXTSTATE next;
52
53
        /* CIF INPUT (652, 255), (122, 35) */
        INPUT Paramless_TC;
54
            /* CIF PROCEDURECALL (610, 305), (205, 35) */
55
            CALL writeln('Got Paramless TC');
56
            /* CIF PROCEDURECALL (613, 355), (200, 35) */
Maxime Perrotin's avatar
Maxime Perrotin committed
57
            CALL SET_timer(1000, mytimer);
58
            /* CIF OUTPUT (650, 405), (125, 35) */
59
            OUTPUT Paramless_TM;
60
            /* CIF NEXTSTATE (678, 455), (70, 35) */
61
            NEXTSTATE wait;
Maxime Perrotin's avatar
Maxime Perrotin committed
62
63
64
65
        /* CIF INPUT (826, 255), (90, 35) */
        INPUT mytimer;
            /* CIF NEXTSTATE (826, 305), (90, 35) */
            NEXTSTATE Timeout;
Maxime Perrotin's avatar
Maxime Perrotin committed
66
67
    ENDSTATE;
ENDPROCESS orchestrator;