summaryrefslogtreecommitdiff
path: root/js/Branching/FROM.js
blob: 3317192f343411dfa60992e962884fd6038a0528 (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
44
45
46
47
48
49
/* autogenerated from "macros/Branching/FROM.sci" */
function FROM() {
    FROM.prototype.define = function FROM() {
        model = scicos_model();
        model.sim = "from";
        model.in1 = [];
        model.in2 = [];
        model.intyp = 1;
        model.out = -1;
        model.out2 = -2;
        model.outtyp = -1;
        model.ipar = [];
        model.opar = list("A");
        model.blocktype = "c";
        model.dep_ut = [false,false];
        exprs = ["A"];
        gr_i = [];
        x = standard_define([2,1],model,exprs,gr_i);
        x.graphics.id = "From";
    }
    FROM.prototype.details = function FROM() {
    }
    FROM.prototype.get = function FROM() {
    }
    FROM.prototype.set = function FROM() {
        x = arg1;
        graphics = arg1.graphics;
        exprs = graphics.exprs;
        model = arg1.model;
        while (true) {
        [ok,tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs);
        if (!ok) {
break;
}
        if (ok) {
        if (model.opar!=list(tag)) {
        needcompile = 4;
        y = needcompile;
}
        graphics.exprs = exprs;
        model.opar = list(tag);
        x.model = model;
        x.graphics = graphics;
break;
}
}
needcompile=resume(needcompile)
    }
}