summaryrefslogtreecommitdiff
path: root/js/Misc/Extract_Activation.js
blob: d8fcaa48c3b85aec578dbdb4ca358932e852dae8 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* autogenerated from "macros/Misc/Extract_Activation.sci" */
function Extract_Activation() {
    Extract_Activation.prototype.define = function Extract_Activation() {
        scs_m_1 = scicos_diagram();
        scs_m_1.objs[1-1] = IFTHEL_f("define");
        scs_m_1.objs[2-1] = CLKSOMV_f("define");
        scs_m_1.objs[3-1] = IN_f("define");
        scs_m_1.objs[4-1] = CLKOUTV_f("define");
        scs_m_1.objs[5-1] = scicos_link();
        scs_m_1.objs[6-1] = scicos_link();
        scs_m_1.objs[7-1] = scicos_link();
        scs_m_1.objs[8-1] = scicos_link();
        blk = scs_m_1.objs[1-1];
        graphics = blk.graphics;
        this.model = blk.model;
        graphics.orig = [80,0];
        graphics.sz = [60,40];
        graphics.exprs = [["0"],["0"]];
        this.model.evtin = [];
        this.model.nzcross = new ScilabDouble([0]);
        this.model.nmode = new ScilabDouble([0]);
        graphics.pin = 7;
        graphics.peout = [[5],[6]];
        blk.graphics = graphics;
        blk.model = this.model;
        scs_m_1.objs[1-1] = blk;
        blk = scs_m_1.objs[2-1];
        graphics = blk.graphics;
        this.model = blk.model;
        graphics.orig = [80,-80];
        graphics.sz = [80,40];
        graphics.pein = [[5],[6]];
        graphics.peout = 8;
        blk.graphics = graphics;
        blk.model = this.model;
        scs_m_1.objs[2-1] = blk;
        blk = scs_m_1.objs[3-1];
        graphics = blk.graphics;
        this.model = blk.model;
        graphics.orig = [0,10];
        graphics.sz = [20,20];
        graphics.exprs = ["1"];
        this.model.ipar = new ScilabDouble([1]);
        graphics.pout = 7;
        blk.graphics = graphics;
        blk.model = this.model;
        scs_m_1.objs[3-1] = blk;
        blk = scs_m_1.objs[4-1];
        graphics = blk.graphics;
        this.model = blk.model;
        graphics.orig = [110,-140];
        graphics.sz = [20,20];
        graphics.exprs = ["1"];
        this.model.ipar = new ScilabDouble([1]);
        graphics.pein = 8;
        blk.graphics = graphics;
        blk.model = this.model;
        scs_m_1.objs[4-1] = blk;
        lnk = scs_m_1.objs[5-1];
        lnk.ct = [5,-1];
        lnk.from = [1,1,0];
        lnk.to = [2,1,1];
        scs_m_1.objs[5-1] = lnk;
        lnk = scs_m_1.objs[6-1];
        lnk.ct = [5,-1];
        lnk.from = [1,2,0];
        lnk.to = [2,2,1];
        scs_m_1.objs[6-1] = lnk;
        lnk = scs_m_1.objs[7-1];
        lnk.from = [3,1,0];
        lnk.to = [1,1,1];
        scs_m_1.objs[7-1] = lnk;
        lnk = scs_m_1.objs[8-1];
        lnk.ct = [5,-1];
        lnk.from = [2,1,0];
        lnk.to = [4,1,1];
        scs_m_1.objs[8-1] = lnk;
        blk={};
        lnk={};
        this.model = scicos_model();
        this.model.sim = new ScilabString(["csuper"]);
        this.model.in1 = new ScilabDouble([1]);
        this.model.evtout = new ScilabDouble([1]);
        this.model.rpar = scs_m_1;
        gr_i = [];
        this.x = standard_define([3,2],this.model,[],gr_i);
        return new BasicBlock(this.x);
    }
    Extract_Activation.prototype.details = function Extract_Activation() {
        return this.x;
    }
    Extract_Activation.prototype.get = function Extract_Activation() {
        var options = {
        }
        return options;
    }
    Extract_Activation.prototype.set = function Extract_Activation() {
        this.x = arg1;
        return new BasicBlock(this.x);
    }
}