summaryrefslogtreecommitdiff
path: root/js/Branching/CLKFROM.js
blob: 3f33b7be01ace61609f5b73f298f1d5edc85a540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* autogenerated from "macros/Branching/CLKFROM.sci" */
function CLKFROM() {
    CLKFROM.prototype.define = function CLKFROM() {
        model = scicos_model();
        model.sim = "clkfrom";
        model.evtout = 1;
        model.opar = list("A");
        model.blocktype = "d";
        model.firing = -1;
        model.dep_ut = [false,false];
        exprs = "A";
        x = standard_define([2,1],model,exprs," ");
        x.graphics.id = "From";
    }
    CLKFROM.prototype.details = function CLKFROM() {
    }
    CLKFROM.prototype.get = function CLKFROM() {
    }
    CLKFROM.prototype.set = function CLKFROM() {
        x = arg1;
        graphics = arg1.graphics;
        model = arg1.model;
        exprs = graphics.exprs;
        while (true) {
        [ok,tag,exprs] = scicos_getvalue("Set block parameters","Tag",list("str",-1),exprs);
        if (!ok) {
break;
}
        if (model.opar!=list(tag)) {
        needcompile = 4;
        y = needcompile;
}
        model.opar = list(tag);
        model.evtout = 1;
        model.firing = -1;
        graphics.exprs = exprs;
        x.graphics = graphics;
        x.model = model;
break;
}
needcompile=resume(needcompile)
    }
}